Skip to content

Commit

Permalink
small fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
mlibre committed May 31, 2024
1 parent 146d59b commit 6838172
Show file tree
Hide file tree
Showing 25 changed files with 147 additions and 100 deletions.
4 changes: 2 additions & 2 deletions assets/bruno/goodchain/block/by index.bru
Original file line number Diff line number Diff line change
Expand Up @@ -5,13 +5,13 @@ meta {
}

get {
url: http://{{host}}:{{port}}/block?index=0
url: http://{{host}}:{{port}}/block?index=1
body: json
auth: none
}

query {
index: 0
index: 1
}

body:json {
Expand Down
8 changes: 4 additions & 4 deletions assets/bruno/goodchain/transactions/add transaction.bru
Original file line number Diff line number Diff line change
Expand Up @@ -12,12 +12,12 @@ post {

body:json {
{
"from": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEACgkPwpxpA7+KD0dzG/y0dcgRdk4GnE4us/nqqEcyy/s=\n-----END PUBLIC KEY-----\n",
"to": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA47ytDBrGmxOnSs2zU2BVJCiWMvZqvKeDsqEKnXhLmSE=\n-----END PUBLIC KEY-----\n",
"from": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAQuJ8hp9ntC2z/q+i9TA60NzxLf5JGbSax76JWr+vp8A=\n-----END PUBLIC KEY-----\n",
"to": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEABYuR9ZVr8WRemSZX6RaTlXFmzMZ8Erx3OKsxGi3alXk=\n-----END PUBLIC KEY-----\n",
"amount": 1,
"fee": 0,
"transaction_number": 3,
"signature": "340fbf0aa99321d53fbdbe9a491d7bb3c6b8db93a2341ec603a7ba1651c65c6645747418670024c85e11f983b00edd3665f36bcd0ca2529023c1ae04f5a7ae05",
"id": "72ddf62b-fcf4-4038-bd51-f5541fff4734"
"signature": "946f4396b70c4bd508a0369088c2a904be95803b5eb87e2a8a1437db7d5ad59f322dc98910e1012e6d3e585212a1a64c0ad52541576990b9da8024d6a7212404",
"id": "c945220c-ff65-4fbd-a046-6579589eca14"
}
}
6 changes: 3 additions & 3 deletions assets/bruno/goodchain/transactions/signing transaction.bru
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,11 @@ post {

body:json {
{
"from": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEACgkPwpxpA7+KD0dzG/y0dcgRdk4GnE4us/nqqEcyy/s=\n-----END PUBLIC KEY-----\n",
"to": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEA47ytDBrGmxOnSs2zU2BVJCiWMvZqvKeDsqEKnXhLmSE=\n-----END PUBLIC KEY-----\n",
"from": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEAQuJ8hp9ntC2z/q+i9TA60NzxLf5JGbSax76JWr+vp8A=\n-----END PUBLIC KEY-----\n",
"to": "-----BEGIN PUBLIC KEY-----\nMCowBQYDK2VwAyEABYuR9ZVr8WRemSZX6RaTlXFmzMZ8Erx3OKsxGi3alXk=\n-----END PUBLIC KEY-----\n",
"amount": 1,
"fee": 0,
"transaction_number": 3,
"privateKey": "-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEINdEAQV5NJfOXe70utNxRxBzEJLautvy83MOoUHKBTa0\n-----END PRIVATE KEY-----\n"
"privateKey": "-----BEGIN PRIVATE KEY-----\nMC4CAQAwBQYDK2VwBCIEIG1YwIi76G+K6C0HKg+lH+Q69k03Kp/D8bKXcX6OYuq1\n-----END PRIVATE KEY-----\n"
}
}
6 changes: 6 additions & 0 deletions assets/db/nodes/nodes.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
{
"list": [
"http://127.0.0.1:3001"
],
"hostUrl": "http://127.0.0.1:3000"
}
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.

64 changes: 38 additions & 26 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.

10 changes: 5 additions & 5 deletions dist/API/routes/chain.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/chain.js.map

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

4 changes: 2 additions & 2 deletions dist/API/routes/mine.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/mine.js.map

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

13 changes: 9 additions & 4 deletions dist/API/routes/transaction.js

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

Loading

0 comments on commit 6838172

Please sign in to comment.