mirror of
https://github.com/fluencelabs/tendermint
synced 2025-06-12 12:51:22 +00:00
account permissions and some gendoug
This commit is contained in:
10
vm/native.go
10
vm/native.go
@ -89,3 +89,13 @@ func identityFunc(input []byte, gas *int64) (output []byte, err error) {
|
||||
// Return identity
|
||||
return input, nil
|
||||
}
|
||||
|
||||
//-----------------------------------------------------------------------------
|
||||
// Doug Contracts are stateful and must be set with closures wrapping the current tx cache
|
||||
// Note they should be reset to refresh the closure or it will be stale
|
||||
|
||||
var dougContracts = make(map[Word256]NativeContract)
|
||||
|
||||
func (vm *VM) SetDougFunc(n Word256, f NativeContract) {
|
||||
dougContracts[n] = f
|
||||
}
|
||||
|
Reference in New Issue
Block a user