diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-04 17:01:32 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-04-09 21:32:49 +0800 |
commit | 6f442cd7793daad014aa0d55b3b7320392c22f02 (patch) | |
tree | b786b698c609273a36b90b6150b0cd2eaa2bde08 /dex/app.go | |
parent | b67ef6594e03b45bb9e683631a7bf9584f6a3437 (diff) | |
download | dexon-6f442cd7793daad014aa0d55b3b7320392c22f02.tar dexon-6f442cd7793daad014aa0d55b3b7320392c22f02.tar.gz dexon-6f442cd7793daad014aa0d55b3b7320392c22f02.tar.bz2 dexon-6f442cd7793daad014aa0d55b3b7320392c22f02.tar.lz dexon-6f442cd7793daad014aa0d55b3b7320392c22f02.tar.xz dexon-6f442cd7793daad014aa0d55b3b7320392c22f02.tar.zst dexon-6f442cd7793daad014aa0d55b3b7320392c22f02.zip |
core: vm: implement the rest of governance contract methods
Diffstat (limited to 'dex/app.go')
-rw-r--r-- | dex/app.go | 10 |
1 files changed, 7 insertions, 3 deletions
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. |