neo-go/pkg
Roman Khimov 8926cbe368 core: fix potential data race in logging code
Spotted in CircleCI build with Go 1.12:

WARNING: DATA RACE
Write at 0x00c00011095c by goroutine 88:
  sync/atomic.SwapInt32()
      /usr/local/go/src/runtime/race_amd64.s:249 +0xb
  github.com/CityOfZion/neo-go/pkg/core.(*Blockchain).persist()
      /go/src/github.com/CityOfZion/neo-go/pkg/core/blockchain.go:483 +0x172
  github.com/CityOfZion/neo-go/pkg/core.(*Blockchain).Run.func2()
      /go/src/github.com/CityOfZion/neo-go/pkg/core/blockchain.go:191 +0x50

Previous read at 0x00c00011095c by goroutine 64:
  github.com/CityOfZion/neo-go/pkg/core.(*Blockchain).persist()
      /go/src/github.com/CityOfZion/neo-go/pkg/core/blockchain.go:492 +0x4be
  github.com/CityOfZion/neo-go/pkg/core.(*Blockchain).Run.func2()
      /go/src/github.com/CityOfZion/neo-go/pkg/core/blockchain.go:191 +0x50

Goroutine 88 (running) created at:
  github.com/CityOfZion/neo-go/pkg/core.(*Blockchain).Run()
      /go/src/github.com/CityOfZion/neo-go/pkg/core/blockchain.go:190 +0x264

Goroutine 64 (finished) created at:
  github.com/CityOfZion/neo-go/pkg/core.(*Blockchain).Run()
      /go/src/github.com/CityOfZion/neo-go/pkg/core/blockchain.go:190 +0x264
2019-10-15 18:58:22 +03:00
..
core core: fix potential data race in logging code 2019-10-15 18:58:22 +03:00
crypto keys: make public key's IsInfinity() public 2019-10-15 12:56:25 +03:00
internal/keytestcases *: add/fix godoc comments to satisfy golint 2019-09-03 17:57:51 +03:00
interop *: fix some misspellings 2019-09-03 18:20:05 +03:00
io io: drop getVarStringSize() completely 2019-09-20 20:01:56 +03:00
network core: add some interops 2019-10-15 12:56:25 +03:00
rpc core: verify blocks, fix #12 2019-10-15 18:58:17 +03:00
smartcontract smartcontract: add CreateSignatureRedeemScript() 2019-10-15 12:56:25 +03:00
util core: sort hashes and witnesses in VerifyWitnesses() 2019-10-01 13:41:26 +03:00
vm vm: add script check functions 2019-10-15 12:56:25 +03:00
wallet *: gofmt -s 2019-09-09 12:02:24 +03:00