Raptor3um / raptoreum

MIT License
316 stars 134 forks source link

Fixed deadlock when receiving new block during VerifyDB #379

Closed CodeIsTheKey closed 5 months ago

CodeIsTheKey commented 5 months ago

Fixed deadlock that can occur when a block comes in while in VerifyDB at startup.

Improved Update/Vote logging after testing.

CodeIsTheKey commented 5 months ago

This is the situation that occurred:

2024-05-30T00:48:47Z POTENTIAL DEADLOCK DETECTED
2024-05-30T00:48:47Z Previous lock order was:
2024-05-30T00:48:47Z  (2) cs_main init.cpp:2173 (in thread init)
2024-05-30T00:48:47Z  (2) cs_main validation.cpp:4832 (in thread init)
2024-05-30T00:48:47Z  cs evo/deterministicmns.cpp:661 (in thread init)
2024-05-30T00:48:47Z  cs evo/deterministicmns.cpp:975 (in thread init)
2024-05-30T00:48:47Z  (1) updateMutex update/update.cpp:304 (in thread init)
2024-05-30T00:48:47Z Current lock order is:
2024-05-30T00:48:47Z  (1) updateMutex update/update.cpp:304 (in thread loadblk)
2024-05-30T00:48:47Z  (2) cs_main validation.cpp:1052 (in thread loadblk)