OSDN Git Service

add dpos consensus
authormars <mars@bytom.io>
Tue, 8 Jan 2019 01:21:55 +0000 (09:21 +0800)
committermars <mars@bytom.io>
Tue, 8 Jan 2019 01:21:55 +0000 (09:21 +0800)
commitddc7106558f020bde24cc337d51649611dddaba8
tree3913b1ec4ffa593187a03a557e6d696929a48d34
parent7d76d575f5101652fba26714b1b6b6523220e126
add dpos consensus
63 files changed:
account/dpos_builder.go [new file with mode: 0644]
account/utxo_keeper.go
api/api.go
api/cliam_transact.go
api/dpos_vote.go [new file with mode: 0644]
api/hsm.go
api/miner.go
api/nodeinfo.go
api/transact.go
blockchain/txbuilder/data_witness.go
blockchain/txbuilder/finalize.go
blockchain/txbuilder/rawtxsig_witness.go
blockchain/txbuilder/signature_witness.go
blockchain/txbuilder/signing_instruction.go
blockchain/txbuilder/witness.go
chain/chain.go [new file with mode: 0644]
cmd/vapor/commands/run_node.go
cmd/vapor/consensus.json [new file with mode: 0644]
config/config.go
config/genesis.go
consensus/consensus/consensus.go [new file with mode: 0644]
consensus/consensus/dpos/custom_tx.go [new file with mode: 0644]
consensus/consensus/dpos/dpos.go [new file with mode: 0644]
consensus/consensus/dpos/signer_queue.go [new file with mode: 0644]
consensus/consensus/dpos/snapshot.go [new file with mode: 0644]
consensus/consensus/errors.go [moved from mining/consensus/errors.go with 100% similarity]
database/leveldb/store.go
database/leveldb/utxo_view.go
mining/consensus/consensus.go [deleted file]
mining/consensus/dpos/custom_tx.go [deleted file]
mining/consensus/dpos/dpos.go [deleted file]
mining/consensus/dpos/signer_queue.go [deleted file]
mining/consensus/dpos/snapshot.go [deleted file]
mining/miner/miner.go [new file with mode: 0644]
mining/mining.go
netsync/block_fetcher.go
netsync/block_keeper.go
netsync/handle.go
node/node.go
protocol/bc/bc.pb.go
protocol/bc/bc.proto
protocol/bc/blockheader.go
protocol/bc/dpos.go [new file with mode: 0644]
protocol/bc/entry.go
protocol/bc/types/block_header.go
protocol/bc/types/bytom/types/block_test.go [new file with mode: 0644]
protocol/bc/types/claim_pegin.go
protocol/bc/types/dpos.go [new file with mode: 0644]
protocol/bc/types/map.go
protocol/bc/types/spend.go
protocol/bc/types/txinput.go
protocol/block.go
protocol/protocol.go
protocol/state/blockindex.go
protocol/store.go
protocol/txpool.go
protocol/validation/block.go
protocol/validation/tx.go
protocol/vm/bitwise.go
protocol/vm/vm.go
wallet/indexer.go
wallet/utxo.go
wallet/wallet.go