copernet / copernicus

An alternative implementation of the Bitcoin Cash protocol, written in Golang
https://copernet.io
BSD 2-Clause "Simplified" License
85 stars 34 forks source link

Fix a data race of unit test of server #202

Closed Radar3 closed 5 years ago

Radar3 commented 5 years ago

And lower the possibility of data race of Cfg.DisableBanning: because the Cfg global var is without any lock, but I need to modify it to test a unit case, so until now we can lower the data race occurring possibility , but we can't absolutely avoid that.

Radar3 commented 5 years ago

after merged, this fail ci check will never occur again.