leapdao / meta

Everything meta and not-fitting to other repos
Creative Commons Attribution Share Alike 4.0 International
9 stars 7 forks source link

Fix deposits on the testnet #205

Closed troggy closed 4 years ago

troggy commented 4 years ago

Problem: Since deposit 156, no deposits are not created on a testnet.

Reason: Deposit 157 was a NFT token with value of "0", which wasn't processed by the node due to the deposit output validation error:

Dec 20 15:59:53 ip-172-31-31-90 leap-node[26799]: unhandledRejection Error: Output value is < 1
Dec 20 15:59:53 ip-172-31-31-90 leap-node[26799]:     at new Output (/usr/local/share/.config/yarn/global/node_modules/leap-core/dist/output.js:66:13)
Dec 20 15:59:53 ip-172-31-31-90 leap-node[26799]:     at Function.deposit (/usr/local/share/.config/yarn/global/node_modules/leap-core/dist/transaction.js:571:61)
Dec 20 15:59:53 ip-172-31-31-90 leap-node[26799]:     at Object.NewDeposit (/usr/local/share/.config/yarn/global/node_modules/leap-node/src/eventsRelay.js:63:23)

Since then all the deposits are rejected with

2020-01-13T13:54:30.380Z leap-node:error Deposit ID skipping ahead. want 157, found 158
Jan 13 13:55:33 ip-172-31-40-151 leap-node[25849]: 2020-01-13T13:55:33.411Z leap-node:error Deposit ID skipping ahead. want 157, found 159

Resolution:

johannbarbie commented 4 years ago

just out of interest, why 5.4 and not 5.5?

troggy commented 4 years ago

because it is just a bug fix?

troggy commented 4 years ago

I'm not sure how to apply semver rule here. Technically, 5.4.1 and patched version will process 0 NFTs differently and won't be compatible with each other on that matter, so this probably means the version should be 6.0.0 :)

@johannbarbie great point on the version

johannbarbie commented 4 years ago

a small bug for consensus, a big leap for semver 🤣

troggy commented 4 years ago

fix released in leap-node@6.0.0 and is now live on testnet