OSDN Git Service

Block node (#541)
authorPaladz <yzhu101@uottawa.ca>
Sun, 8 Apr 2018 07:17:26 +0000 (15:17 +0800)
committerGitHub <noreply@github.com>
Sun, 8 Apr 2018 07:17:26 +0000 (15:17 +0800)
commit6bc4359589ce852b91a738b8180dc911aaa6a159
treec0967682e038cf65df192827833e4c0b4ac8c9c6
parente27a30bacf61ec4578b615be45bee42838b2f2fa
Block node (#541)

* separate orphan manage from protocol

* savage version of blockIndex

* elegent the blockindex

* eleganet the leveldb part

* make it runable on single node

* pass the make test

* process use channel

* make the connect block safe from async
30 files changed:
account/accounts_test.go
account/reserve_test.go
api/miner.go
asset/asset.go
asset/asset_test.go
consensus/difficulty/difficulty.go
database/leveldb/mainchain.go [deleted file]
database/leveldb/mainchain_test.go [deleted file]
database/leveldb/store.go
database/storage/storage.pb.go
database/storage/storage.proto
mining/cpuminer/cpuminer.go
mining/mining.go
netsync/message.go
netsync/protocol_reactor.go
node/node.go
protocol/block.go
protocol/blockindex.go [new file with mode: 0755]
protocol/orphan_manage.go [new file with mode: 0755]
protocol/protocol.go
protocol/store.go [moved from database/store.go with 67% similarity]
protocol/tx.go
protocol/tx_test.go
protocol/txpool_test.go
protocol/validation.go [new file with mode: 0644]
protocol/validation/validation.go
protocol/validation/validation_test.go
test/util.go
wallet/wallet.go
wallet/wallet_test.go