Skip to content

Commit 7d8be30

Browse files
authored
Merge pull request #6 from attogram/grammar-updates
Spelling fixes for docs and comments
2 parents 04ff81e + 7e0a0bb commit 7d8be30

6 files changed

Lines changed: 10 additions & 10 deletions

File tree

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ Symbol: PHP
66

77
Block time: 60 sec
88

9-
Consensys: EPOW (Elapsed proof of Work)
9+
Consensus: EPOW (Elapsed proof of Work)
1010

1111
Address generation:
1212

include/class/Api.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -408,7 +408,7 @@ static function version($data) {
408408
* @apiParam {string} public_key Sender's public key
409409
* @apiParam {string} fee Transaction fee. Must be 0
410410
* @apiParam {string} [signature] Transaction signature. It's recommended that the transaction is signed before being sent to the node to avoid sending your private key to the node.
411-
* @apiParam {numeric} [date] Transaction's date in UNIX TIMESTAMP format. Requried when the transaction is pre-signed.
411+
* @apiParam {numeric} [date] Transaction's date in UNIX TIMESTAMP format. Required when the transaction is pre-signed.
412412
* @apiParam {string} [message] A message to be included with the transaction. Maximum 128 chars.
413413
* @apiParam {numeric} [type] The type of the transaction. 1 to send coins.
414414
*
@@ -568,8 +568,8 @@ static function checkAddress($data) {
568568
* @apiSuccess {string} hostname Peer hostname
569569
* @apiSuccess {numeric} blacklisted UNIX timestamp until peer is blacklisted
570570
* @apiSuccess {numeric} ping UNIX timestamp when peer was last pinged
571-
* @apiSuccess {numeric} fails Number of failed conections to peer
572-
* @apiSuccess {numeric} stuckfail Number of failed stuck conentions to peer
571+
* @apiSuccess {numeric} fails Number of failed connections to peer
572+
* @apiSuccess {numeric} stuckfail Number of failed stuck connections to peer
573573
* @apiSuccess {numeric} height Blockchain height of peer
574574
* @apiSuccess {string} appshash Hash of peer apps
575575
* @apiSuccess {numeric} score Peer node score
@@ -590,7 +590,7 @@ static function getPeers($data) {
590590
* @apiSuccess {string} [public_key] Public key of masternode
591591
* @apiSuccess {numeric} [height] Height at which masternode is created
592592
* @apiSuccess {string} [ip] IP address of masternode
593-
* @apiSuccess {numeric} [win_height] Last height whem masternode received reward
593+
* @apiSuccess {numeric} [win_height] Last height when masternode received reward
594594
* @apiSuccess {string} [signature] current masternode signature
595595
* @apiSuccess {string} [id] Address of masternode
596596
* @apiSuccess {numeric} [collateral] Locked collateral in masternode
@@ -634,7 +634,7 @@ static function getMasternodesForAddress($data) {
634634
* @apiSuccess {string} [public_key] Public key of masternode
635635
* @apiSuccess {numeric} [height] Height at which masternode is created
636636
* @apiSuccess {string} [ip] IP address of masternode
637-
* @apiSuccess {numeric} [win_height] Last height whem masternode received reward
637+
* @apiSuccess {numeric} [win_height] Last height when masternode received reward
638638
* @apiSuccess {string} [signature] current masternode signature
639639
* @apiSuccess {string} [id] Address of masternode
640640
* @apiSuccess {numeric} [collateral] Locked collateral in masternode

include/common.functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -135,7 +135,7 @@ function base58_encode($string)
135135
return (string)$output;
136136
}
137137

138-
// convers hex to base58
138+
// converts hex to base58
139139
function hex2coin($hex)
140140
{
141141
$data = hex2bin($hex);

include/dapps.functions.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -127,7 +127,7 @@ function dapps_get_id() {
127127
}
128128

129129
/**
130-
* Retreives base url of currently running dapp
130+
* Retrieves base url of currently running dapp
131131
* @param string $url - url to append to dapps base url. If not specified current url is returned
132132
* @param boolean $full - return complete url with scheme and port
133133
* @return string

include/functions.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
require_once __DIR__ . "/common.functions.php";
44

5-
// simple santization function to accept only alphanumeric characters
5+
// simple sanitization function to accept only alphanumeric characters
66
function san($a, $b = "")
77
{
88
$a = preg_replace("/[^a-zA-Z0-9".$b."]/", "", $a??"");

include/schema.inc.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -299,7 +299,7 @@ function create_views() {
299299
$db->run("INSERT INTO `config` (`cfg`, `val`) VALUES ('sync', '0');");
300300

301301
create_views();
302-
_log("Initialize databaase complete");
302+
_log("Initialize database complete");
303303

304304
});
305305
}

0 commit comments

Comments
 (0)