aboutsummaryrefslogtreecommitdiffstats
path: root/dex/app.go
diff options
context:
space:
mode:
authorWei-Ning Huang <w@cobinhood.com>2018-10-04 17:01:32 +0800
committerWei-Ning Huang <w@byzantine-lab.io>2019-06-12 17:23:38 +0800
commit8b977d488bce2d9d9d29a4ddc460b1ffac44aed2 (patch)
tree3b5ab64a09469a8a1e955688b1cecb80e5186e1c /dex/app.go
parent611a560ab953a8dcb73dee465a26bc110a56a1db (diff)
downloadgo-tangerine-8b977d488bce2d9d9d29a4ddc460b1ffac44aed2.tar
go-tangerine-8b977d488bce2d9d9d29a4ddc460b1ffac44aed2.tar.gz
go-tangerine-8b977d488bce2d9d9d29a4ddc460b1ffac44aed2.tar.bz2
go-tangerine-8b977d488bce2d9d9d29a4ddc460b1ffac44aed2.tar.lz
go-tangerine-8b977d488bce2d9d9d29a4ddc460b1ffac44aed2.tar.xz
go-tangerine-8b977d488bce2d9d9d29a4ddc460b1ffac44aed2.tar.zst
go-tangerine-8b977d488bce2d9d9d29a4ddc460b1ffac44aed2.zip
core: vm: implement the rest of governance contract methods
Diffstat (limited to 'dex/app.go')
-rw-r--r--dex/app.go10
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.