diff options
author | Wei-Ning Huang <w@cobinhood.com> | 2018-10-04 17:01:32 +0800 |
---|---|---|
committer | Wei-Ning Huang <w@dexon.org> | 2019-03-12 12:19:09 +0800 |
commit | e5916118811b81836259bdd116fcee6db1e12fa5 (patch) | |
tree | 9b3152177adad80c5eeb8af5a75c62925f1a7b04 /dex/app.go | |
parent | b18f0e4a8c648ac81488e0638e39199760c32c76 (diff) | |
download | dexon-e5916118811b81836259bdd116fcee6db1e12fa5.tar dexon-e5916118811b81836259bdd116fcee6db1e12fa5.tar.gz dexon-e5916118811b81836259bdd116fcee6db1e12fa5.tar.bz2 dexon-e5916118811b81836259bdd116fcee6db1e12fa5.tar.lz dexon-e5916118811b81836259bdd116fcee6db1e12fa5.tar.xz dexon-e5916118811b81836259bdd116fcee6db1e12fa5.tar.zst dexon-e5916118811b81836259bdd116fcee6db1e12fa5.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. |