neoneo-go/pkg/core
Roman Khimov 4395cea344 storage: fix reading overlapping hash blocks from the DB
In the unlikely event of overlapping hash block written to the DB we might end
up with wrong hash list. That happened to me for some reason when synching
with the testnet leading to the following keys with respective values:
  150000 -> 2000 hashes
  152000 -> 2000 hashes
  153999 -> 2000 hashes

Reading it hashes number 153999 and 154000 got the same values and the chain
couldn't sync correctly.
2019-09-11 20:33:41 +03:00
..
storage storage: fix reading overlapping hash blocks from the DB 2019-09-11 20:33:41 +03:00
test_data Persist blockchain with leveldb on disk (#48) 2018-03-17 12:53:21 +01:00
transaction *: gofmt -s 2019-09-09 12:02:24 +03:00
account_state.go pkg/core: use util.binaryReader/Writer 2019-08-28 19:45:17 +03:00
account_state_test.go keys: simplify error handling for PublicKey() and associated 2019-09-05 12:34:12 +03:00
asset_state.go pkg/core: use util.binaryReader/Writer 2019-08-28 19:45:17 +03:00
asset_state_test.go crypto/wallet: move public/private key into the new keys package 2019-08-27 17:45:51 +03:00
block.go core: add EncodeBinary() support for the block 2019-08-30 11:41:10 +03:00
block_base.go pkg/core: use util.binaryReader/Writer 2019-08-28 19:45:17 +03:00
block_test.go core: fix 'implementation' misspell in test code 2019-09-09 14:53:50 +03:00
blockchain.go core: optimize persist() for the case when no next block found 2019-09-11 20:32:30 +03:00
blockchain_test.go unitTests: fix for failing test 2019-09-10 23:21:26 +03:00
blockchainer.go Implement rpc server method: sendrawtransaction (#174) 2019-03-20 12:30:05 +00:00
cache.go Fix typos (#133) 2019-02-13 18:01:10 +00:00
coin_state.go Persist transactions (#51) 2018-03-21 17:11:04 +01:00
contract_state.go Persisting more states (#71) 2018-04-16 22:15:30 +02:00
feer.go Implement rpc server method: sendrawtransaction (#174) 2019-03-20 12:30:05 +00:00
header.go Fix typos (#133) 2019-02-13 18:01:10 +00:00
header_hash_list.go pkg/core: use util.binaryReader/Writer 2019-08-28 19:45:17 +03:00
header_test.go pkg: make use of the new crypto/hash package 2019-08-26 13:32:19 +03:00
helper_test.go pkg: make use of the new crypto/hash package 2019-08-26 13:32:19 +03:00
mem_pool.go Implement rpc server method: sendrawtransaction (#174) 2019-03-20 12:30:05 +00:00
random_util_test.go pkg: make use of the new crypto/hash package 2019-08-26 13:32:19 +03:00
spent_coin_state.go pkg/core: use util.binaryReader/Writer 2019-08-28 19:45:17 +03:00
spent_coin_state_test.go pkg: make use of the new crypto/hash package 2019-08-26 13:32:19 +03:00
unspent_coin_state.go pkg/core: use util.binaryReader/Writer 2019-08-28 19:45:17 +03:00
unspent_coint_state_test.go pkg: make use of the new crypto/hash package 2019-08-26 13:32:19 +03:00
util.go crypto/wallet: move public/private key into the new keys package 2019-08-27 17:45:51 +03:00
util_test.go uint256: add Reverse(), change String() to be BE 2019-08-26 13:32:19 +03:00
validator_state.go crypto/wallet: move public/private key into the new keys package 2019-08-27 17:45:51 +03:00