Skip to content

Commit

Permalink
No commit message
Browse files Browse the repository at this point in the history
  • Loading branch information
mlibre committed May 25, 2024
1 parent 0c5b194 commit d259ff7
Show file tree
Hide file tree
Showing 10 changed files with 36 additions and 40 deletions.
1 change: 1 addition & 0 deletions assets/db
Submodule db added at e8da48
4 changes: 2 additions & 2 deletions assets/keys/miner.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"publicKey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEANSRDCNj6yLHp3FS7zrRxLmuZbxPKq8ODi9wtmDZQg38=\n-----END PUBLIC KEY-----\n",
"privateKey": "-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEIAkailpOIkIv09qeA3SOZRyXs7a4QTxK2cV8dYz6oTqd\n-----END PRIVATE KEY-----\n"
"publicKey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAkQuBeAFQvPgDICJxIkk2Up0arCTc4FDxmUjz44Qrqis=\n-----END PUBLIC KEY-----\n",
"privateKey": "-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEIGKBY2Dmd6PxPY5IFacryfKMCJAeBmJEZTPLRSV1gO1s\n-----END PRIVATE KEY-----\n"
}
4 changes: 2 additions & 2 deletions assets/keys/user.json
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
{
"publicKey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAtn+5QsDExPs6YttUNNYgfRQy7aoPvNluOWUdm9z9Ivs=\n-----END PUBLIC KEY-----\n",
"privateKey": "-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEILGts0FsxzD4jVOaI3rhzuYc1g4sZKEZtMx1yn5fIDZO\n-----END PRIVATE KEY-----\n"
"publicKey": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAn5pPbQNTuykfgK/Ooitl+pGGf0UJ8HGCBKyGgFen/04=\n-----END PUBLIC KEY-----\n",
"privateKey": "-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEINkpCsj3fChpvBrsctb1roCz0YA9oxRvLtsmHOY7eJr2\n-----END PRIVATE KEY-----\n"
}
2 changes: 1 addition & 1 deletion dist/API/blockchain.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/API/blockchain.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

45 changes: 20 additions & 25 deletions dist/API/routes/block.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/API/routes/block.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 3 additions & 3 deletions dist/library/transaction.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion dist/library/transaction.js.map

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 4 additions & 4 deletions src/library/transaction.ts
Original file line number Diff line number Diff line change
Expand Up @@ -53,14 +53,14 @@ export default class Transaction
{
throw new Error( "Invalid amount" );
}
if ( this.isCoinBase() )
{
return true;
}
if ( !this.to )
{
throw new Error( "Invalid transaction: missing 'to' address" );
}
if ( this.isCoinBase() )
{
return true;
}
this.verifySignature();
return true;
}
Expand Down

0 comments on commit d259ff7

Please sign in to comment.