numbersprotocol / nit

Git of Web3 assets
https://docs.numbersprotocol.io/
MIT License
4.44k stars 8 forks source link

feat(src/run.ts): detect conflict before commit #7

Closed grandpaul closed 1 year ago

grandpaul commented 2 years ago

We will store the block number when add. And when commit we check if the block number is still the same. Otherwise we stop and let user know that there might be a conflict.

Signed-off-by: Ying-Chun Liu (PaulLiu) paulliu@debian.org