dtube / avalon

Blockchain for social distribution

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

MongoError: E11000 duplicate key error collection: avalon.blocks

skzap opened this issue · comments

There is a bug for active leaders where sometimes it tries to mine at the same time a block is validated through consensus. Example: http://dpaste.com/1WKRPMN

We can see in the example the node was extremely slow to validate the block (0.8 secs) and probably tried to self mine while the approved block was already adding, creating this error and destroying the state in the db, forcing a replay...

Shouldn't happen on new develop as miners now submit to consensus instead of moving forward blindly