diff options
author | Mission Liao <mission.liao@dexon.org> | 2018-09-30 09:01:54 +0800 |
---|---|---|
committer | GitHub <noreply@github.com> | 2018-09-30 09:01:54 +0800 |
commit | f2c13bd773c9684356a8a992d783916d49e70b59 (patch) | |
tree | 8cb875496ebbe21b7497d4482c9947bfbf73eb2f /core/compaction-chain.go | |
parent | 7ee55d0963555a1dfb212f0fb5c2ee59bedfb221 (diff) | |
download | dexon-consensus-f2c13bd773c9684356a8a992d783916d49e70b59.tar dexon-consensus-f2c13bd773c9684356a8a992d783916d49e70b59.tar.gz dexon-consensus-f2c13bd773c9684356a8a992d783916d49e70b59.tar.bz2 dexon-consensus-f2c13bd773c9684356a8a992d783916d49e70b59.tar.lz dexon-consensus-f2c13bd773c9684356a8a992d783916d49e70b59.tar.xz dexon-consensus-f2c13bd773c9684356a8a992d783916d49e70b59.tar.zst dexon-consensus-f2c13bd773c9684356a8a992d783916d49e70b59.zip |
core: integrate authenticator (#150)
Diffstat (limited to 'core/compaction-chain.go')
-rw-r--r-- | core/compaction-chain.go | 21 |
1 files changed, 0 insertions, 21 deletions
diff --git a/core/compaction-chain.go b/core/compaction-chain.go index ecca9cc..b8f41e4 100644 --- a/core/compaction-chain.go +++ b/core/compaction-chain.go @@ -104,27 +104,6 @@ func (cc *compactionChain) processBlock(block *types.Block) error { return nil } -func (cc *compactionChain) prepareWitnessAck( - block *types.Block, prvKey crypto.PrivateKey) ( - witnessAck *types.WitnessAck, err error) { - - hash, err := hashWitness(block) - if err != nil { - return - } - sig, err := prvKey.Sign(hash) - if err != nil { - return - } - witnessAck = &types.WitnessAck{ - ProposerID: types.NewNodeID(prvKey.PublicKey()), - WitnessBlockHash: block.Hash, - Signature: sig, - Hash: hash, - } - return -} - func (cc *compactionChain) processWitnessAck(witnessAck *types.WitnessAck) ( err error) { // Before getting the Block from witnessAck.WitnessBlockHash, we can still |