diff options
author | Felix Lange <fjl@twurst.com> | 2015-03-10 01:05:56 +0800 |
---|---|---|
committer | Felix Lange <fjl@twurst.com> | 2015-03-10 06:08:41 +0800 |
commit | 2ee88a220ac22a814def1d568f80d7f29ede7095 (patch) | |
tree | 756c02425903f90224c89b991a2be064fa9299fc /core | |
parent | 2dacb51fb02816c7591bfdbaaf7a160e122e5590 (diff) | |
download | dexon-2ee88a220ac22a814def1d568f80d7f29ede7095.tar dexon-2ee88a220ac22a814def1d568f80d7f29ede7095.tar.gz dexon-2ee88a220ac22a814def1d568f80d7f29ede7095.tar.bz2 dexon-2ee88a220ac22a814def1d568f80d7f29ede7095.tar.lz dexon-2ee88a220ac22a814def1d568f80d7f29ede7095.tar.xz dexon-2ee88a220ac22a814def1d568f80d7f29ede7095.tar.zst dexon-2ee88a220ac22a814def1d568f80d7f29ede7095.zip |
core: remove Hash method from Message interface
This will simplify the next commmit. Hash was only used for logging.
Diffstat (limited to 'core')
-rw-r--r-- | core/state_transition.go | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/core/state_transition.go b/core/state_transition.go index 00e383f3f..c487f8514 100644 --- a/core/state_transition.go +++ b/core/state_transition.go @@ -3,6 +3,7 @@ package core import ( "fmt" "math/big" + "github.com/ethereum/go-ethereum/crypto" "github.com/ethereum/go-ethereum/ethutil" "github.com/ethereum/go-ethereum/state" @@ -44,8 +45,6 @@ type StateTransition struct { } type Message interface { - Hash() []byte - From() []byte To() []byte @@ -152,7 +151,7 @@ func (self *StateTransition) preCheck() (err error) { } func (self *StateTransition) TransitionState() (ret []byte, err error) { - statelogger.Debugf("(~) %x\n", self.msg.Hash()) + // statelogger.Debugf("(~) %x\n", self.msg.Hash()) // XXX Transactions after this point are considered valid. if err = self.preCheck(); err != nil { |