Files
wownero/src
moneromooo-moneroandwowario 0622741c03 blockchain: fix block template creation race
If two create_block_template are called at nearly the same time,
and a block is added at nearly the same time, this could happen:

- the blockchain top block is B0
- thread 1 enters create_block_template, takes blockchain lock
- thread 1 creates a fresh block referencing prev block B0
- thread 1 releases blockchain lock
- thread 0 adds a new block
- thread 0 enters create_block_template
- thread 0 updates block template
- thread 1 takes txpool lock and continues creating block template
- thread 1 overwrites block template with previous data
2019-03-08 21:17:40 +03:00
..
2018-10-08 21:42:38 +02:00
2019-03-08 21:15:49 +03:00
2018-10-07 20:04:10 +02:00
2018-10-07 20:04:10 +02:00
2018-01-26 10:03:20 -05:00
2019-03-08 21:15:47 +03:00