diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-09-25 18:55:00 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:48 +0800 |
commit | 953e13b21b0aae335ef655a1907a8883f1ba7be2 (patch) | |
tree | 21e929fc76c53cd61593673368e5187d62eac2e0 /dex/app.go | |
parent | b05f0240d48ba0c0c3f9cb1fec948b05733f2ba3 (diff) | |
download | go-tangerine-953e13b21b0aae335ef655a1907a8883f1ba7be2.tar go-tangerine-953e13b21b0aae335ef655a1907a8883f1ba7be2.tar.gz go-tangerine-953e13b21b0aae335ef655a1907a8883f1ba7be2.tar.bz2 go-tangerine-953e13b21b0aae335ef655a1907a8883f1ba7be2.tar.lz go-tangerine-953e13b21b0aae335ef655a1907a8883f1ba7be2.tar.xz go-tangerine-953e13b21b0aae335ef655a1907a8883f1ba7be2.tar.zst go-tangerine-953e13b21b0aae335ef655a1907a8883f1ba7be2.zip |
Use dex.Config instead of eth.Config
Diffstat (limited to 'dex/app.go')
-rw-r--r-- | dex/app.go | 26 |
1 files changed, 5 insertions, 21 deletions
diff --git a/dex/app.go b/dex/app.go index f87f669fb..21857f3c6 100644 --- a/dex/app.go +++ b/dex/app.go @@ -18,9 +18,6 @@ package dex import ( - "time" - - "github.com/dexon-foundation/dexon-consensus-core/common" "github.com/dexon-foundation/dexon-consensus-core/core/types" "github.com/ethereum/go-ethereum/core" @@ -45,26 +42,13 @@ func (d *DexconApp) PreparePayload(position types.Position) []byte { return nil } -// VerifyPayloads verifies if the payloads are valid. -func (d *DexconApp) VerifyPayloads(payloads []byte) bool { +// VerifyPayload verifies if the payloads are valid. +func (d *DexconApp) VerifyPayload(payload []byte) bool { return true } -// BlockConfirmed is called when a block is confirmed and added to lattice. -func (d *DexconApp) BlockConfirmed(block *types.Block) { -} - -// StronglyAcked is called when a block is strongly acked. -func (d *DexconApp) StronglyAcked(blockHash common.Hash) { -} - -// TotalOrderingDeliver is called when the total ordering algorithm deliver -// a set of block. -func (d *DexconApp) TotalOrderingDeliver(blockHashes common.Hashes, early bool) { -} - -// DeliverBlock is called when a block is add to the compaction chain. -func (d *DexconApp) DeliverBlock(blockHash common.Hash, timestamp time.Time) { +// BlockDelivered is called when a block is add to the compaction chain. +func (d *DexconApp) BlockDelivered(block types.Block) { } // BlockProcessedChan returns a channel to receive the block hashes that have @@ -74,5 +58,5 @@ func (d *DexconApp) BlockProcessedChan() <-chan types.WitnessResult { } // WitnessAckDeliver is called when a notary ack is created. -func (d *DexconApp) WitnessAckDeliver(notaryAck *types.WitnessAck) { +func (d *DexconApp) WitnessAckDelivered(notaryAck *types.WitnessAck) { } |