PBSA / peerplays

The Peerplays Blockchain
MIT License
32 stars 46 forks source link

Make bmg resolution ordering consistent #35

Closed emfrias closed 5 years ago

emfrias commented 5 years ago

This fixes a bug that showed up when multiple betting market groups were resolved in one block. non_unique indexes were used, which allowed different nodes to resolve the betting market groups in different orders. This also caused nodes to assign different operation ids to the resolution objects on different nodes. This is fixed by making the bmg-related indexes unique, so when multiple bmgs are resolved in a single block, they will always be processed in order of their bmg id.