Assert that Basecoin ABCI app implements abci.BlockchainAware

This commit is contained in:
Matt Bell 2017-02-04 15:02:51 -08:00
parent 8af20facc3
commit c23c018824
1 changed files with 6 additions and 0 deletions

View File

@ -188,3 +188,9 @@ func splitKey(key string) (prefix string, suffix string) {
}
return key, ""
}
// (not meant to be called)
// assert that Basecoin implements `abci.BlockchainAware` at compile-time
func _assertABCIBlockchainAware(basecoin *Basecoin) abci.BlockchainAware {
return basecoin
}