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/jump_table.go | |
parent | 461291882edce0ac4a28f64c4e8725b7f57cbeae (diff) | |
download | go-tangerine-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.gz go-tangerine-598f786aabc8f8f998008a59094e76944f6c5bdc.tar.zst go-tangerine-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/jump_table.go')
-rw-r--r-- | core/vm/jump_table.go | 22 |
1 files changed, 11 insertions, 11 deletions
diff --git a/core/vm/jump_table.go b/core/vm/jump_table.go index 49a94d964..111a9b798 100644 --- a/core/vm/jump_table.go +++ b/core/vm/jump_table.go @@ -51,17 +51,17 @@ type operation struct { } var ( - frontierInstructionSet = NewFrontierInstructionSet() - homesteadInstructionSet = NewHomesteadInstructionSet() - byzantiumInstructionSet = NewByzantiumInstructionSet() - constantinopleInstructionSet = NewConstantinopleInstructionSet() + frontierInstructionSet = newFrontierInstructionSet() + homesteadInstructionSet = newHomesteadInstructionSet() + byzantiumInstructionSet = newByzantiumInstructionSet() + constantinopleInstructionSet = newConstantinopleInstructionSet() ) // NewConstantinopleInstructionSet returns the frontier, homestead // byzantium and contantinople instructions. -func NewConstantinopleInstructionSet() [256]operation { +func newConstantinopleInstructionSet() [256]operation { // instructions that can be executed during the byzantium phase. - instructionSet := NewByzantiumInstructionSet() + instructionSet := newByzantiumInstructionSet() instructionSet[SHL] = operation{ execute: opSHL, gasCost: constGasFunc(GasFastestStep), @@ -85,9 +85,9 @@ func NewConstantinopleInstructionSet() [256]operation { // NewByzantiumInstructionSet returns the frontier, homestead and // byzantium instructions. -func NewByzantiumInstructionSet() [256]operation { +func newByzantiumInstructionSet() [256]operation { // instructions that can be executed during the homestead phase. - instructionSet := NewHomesteadInstructionSet() + instructionSet := newHomesteadInstructionSet() instructionSet[STATICCALL] = operation{ execute: opStaticCall, gasCost: gasStaticCall, @@ -123,8 +123,8 @@ func NewByzantiumInstructionSet() [256]operation { // NewHomesteadInstructionSet returns the frontier and homestead // instructions that can be executed during the homestead phase. -func NewHomesteadInstructionSet() [256]operation { - instructionSet := NewFrontierInstructionSet() +func newHomesteadInstructionSet() [256]operation { + instructionSet := newFrontierInstructionSet() instructionSet[DELEGATECALL] = operation{ execute: opDelegateCall, gasCost: gasDelegateCall, @@ -138,7 +138,7 @@ func NewHomesteadInstructionSet() [256]operation { // NewFrontierInstructionSet returns the frontier instructions // that can be executed during the frontier phase. -func NewFrontierInstructionSet() [256]operation { +func newFrontierInstructionSet() [256]operation { return [256]operation{ STOP: { execute: opStop, |