MerosCrypto / Meros

An instant and feeless cryptocurrency for the future, secured by the Merit Caching Consensus Mechanism.
https://meroscrypto.io
Other
82 stars 19 forks source link

Creating a Data which doesn't get mined and then rebooting prevents further Data creation. #271

Closed kayabaNerve closed 3 years ago

kayabaNerve commented 3 years ago

The WalletDB keeps a reference to the Data tip and builds future Datas off of it. That said, the Data tip will have been deleted from the Transactions DAG if a Block hasn't caused the DB TX to be committed. If it's not mined, meaning it's not sent back to the node later, any future Datas will raise a ValueError for trying to be based off a non-existent Data.

The WalletDB needs to actually keep a copy of Datas and be ready to re-submit them to fix this.