OSDN Git Service

Utxo storage (#196)
authorPaladz <yzhu101@uottawa.ca>
Mon, 18 Dec 2017 02:08:38 +0000 (10:08 +0800)
committerGitHub <noreply@github.com>
Mon, 18 Dec 2017 02:08:38 +0000 (10:08 +0800)
commit91664a926abd093de630b56108c1b6ddbae7aa7d
tree8608164873eea1d69151ac6dfbcc5b94c7dc6ffb
parentad194466c19439a90ab59cf6d4f206ddfb6aa593
Utxo storage (#196)

* tmp save

* init version of snapshot upgrade

* pass all the unit test

* fix the code logic

* fix a bug

* add unit test for TestSaveMainchain

* add unit test for TestSaveUtxoView

* add unit test: TestGetTransactionsUtxo

* add unit test for utxo_view

* delete the costly unit test

* fix bug on endto end test
26 files changed:
blockchain/account/reserve.go
blockchain/hsm_test.go
blockchain/reactor.go
blockchain/txdb/internal/storage/storage.pb.go [deleted file]
blockchain/txdb/internal/storage/storage.proto [deleted file]
blockchain/txdb/mainchain.go
blockchain/txdb/mainchain_test.go
blockchain/txdb/snapshot.go [deleted file]
blockchain/txdb/snapshot_test.go [deleted file]
blockchain/txdb/storage/storage.pb.go [new file with mode: 0644]
blockchain/txdb/storage/storage.proto [new file with mode: 0644]
blockchain/txdb/storage/utxo_entry.go [new file with mode: 0644]
blockchain/txdb/store.go
blockchain/txdb/utxo_view.go [new file with mode: 0644]
blockchain/txdb/utxo_view_test.go [new file with mode: 0644]
config/genesis.go
config/genesis_test.go
mining/mining.go
mining/mining_test.go [deleted file]
protocol/block.go
protocol/protocol.go
protocol/recover.go [deleted file]
protocol/state/snapshot.go [deleted file]
protocol/state/snapshot_test.go [deleted file]
protocol/state/utxo_view.go [new file with mode: 0644]
protocol/state/utxo_view_test.go [new file with mode: 0644]