From 8b977d488bce2d9d9d29a4ddc460b1ffac44aed2 Mon Sep 17 00:00:00 2001 From: Wei-Ning Huang Date: Thu, 4 Oct 2018 17:01:32 +0800 Subject: core: vm: implement the rest of governance contract methods --- dex/app.go | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) (limited to 'dex/app.go') diff --git a/dex/app.go b/dex/app.go index dee762540..a8b04577d 100644 --- a/dex/app.go +++ b/dex/app.go @@ -35,9 +35,13 @@ func NewDexconApp(txPool *core.TxPool) *DexconApp { } // PreparePayload is called when consensus core is preparing a block. -func (d *DexconApp) PrepareBlock(position types.Position) ( - payload []byte, witnessData []byte) { - return nil, nil +func (d *DexconApp) PreparePayload(position types.Position) []byte { + return nil +} + +// PrepareWitness will return the witness data no lower than consensusHeight. +func (d *DexconApp) PrepareWitness(consensusHeight uint64) types.Witness { + return types.Witness{} } // VerifyPayload verifies if the payloads are valid. -- cgit