diff options
author | Guillaume Ballet <gballet@gmail.com> | 2018-06-26 20:56:25 +0800 |
---|---|---|
committer | Péter Szilágyi <peterke@gmail.com> | 2018-06-26 20:56:25 +0800 |
commit | 598f786aabc8f8f998008a59094e76944f6c5bdc (patch) | |
tree | 3980def2842bed3eda00652520ef9fa93a0aa201 /core/vm/evm.go | |
parent | 461291882edce0ac4a28f64c4e8725b7f57cbeae (diff) | |
download | dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.gz dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.bz2 dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.lz dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.xz dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.zst dexon-598f786aabc8f8f998008a59094e76944f6c5bdc.zip |
core/vm: clear linter warnings (#17057)
* core/vm: clear linter warnings
* core/vm: review input
* core/vm.go: revert lint in noop as per request
Diffstat (limited to 'core/vm/evm.go')
-rw-r--r-- | core/vm/evm.go | 4 |
1 files changed, 3 insertions, 1 deletions
diff --git a/core/vm/evm.go b/core/vm/evm.go index ea4620974..69c8ec478 100644 --- a/core/vm/evm.go +++ b/core/vm/evm.go @@ -31,8 +31,10 @@ import ( var emptyCodeHash = crypto.Keccak256Hash(nil) type ( + // CanTransferFunc is the signature of a transfer guard function CanTransferFunc func(StateDB, common.Address, *big.Int) bool - TransferFunc func(StateDB, common.Address, common.Address, *big.Int) + // TransferFunc is the signature of a transfer function + TransferFunc func(StateDB, common.Address, common.Address, *big.Int) // GetHashFunc returns the nth block hash in the blockchain // and is used by the BLOCKHASH EVM op code. GetHashFunc func(uint64) common.Hash |