diff options
author | Maran <maran.hidskes@gmail.com> | 2014-03-24 22:04:29 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-03-24 22:04:29 +0800 |
commit | 6253d109389d49e47772597de24cd11874b91338 (patch) | |
tree | bfdee01385b3cd9814f1ac31ab13df01a58c2151 /ethchain/state_manager.go | |
parent | ec6ec62dd4f3c4132c79b33fc20467ba98c16f10 (diff) | |
download | dexon-6253d109389d49e47772597de24cd11874b91338.tar dexon-6253d109389d49e47772597de24cd11874b91338.tar.gz dexon-6253d109389d49e47772597de24cd11874b91338.tar.bz2 dexon-6253d109389d49e47772597de24cd11874b91338.tar.lz dexon-6253d109389d49e47772597de24cd11874b91338.tar.xz dexon-6253d109389d49e47772597de24cd11874b91338.tar.zst dexon-6253d109389d49e47772597de24cd11874b91338.zip |
initial testcode for canonical chain
Diffstat (limited to 'ethchain/state_manager.go')
-rw-r--r-- | ethchain/state_manager.go | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go index d907141a4..140b0efd0 100644 --- a/ethchain/state_manager.go +++ b/ethchain/state_manager.go @@ -144,6 +144,7 @@ func (sm *StateManager) ProcessBlock(block *Block, dontReact bool) error { hash := block.Hash() if sm.bc.HasBlock(hash) { + fmt.Println("[SM] We already have this block, ignoring") return nil } @@ -158,12 +159,14 @@ func (sm *StateManager) ProcessBlock(block *Block, dontReact bool) error { // Block validation if err := sm.ValidateBlock(block); err != nil { + fmt.Println("[SM] Error validating block:", err) return err } // I'm not sure, but I don't know if there should be thrown // any errors at this time. if err := sm.AccumelateRewards(block); err != nil { + fmt.Println("[SM] Error accumulating reward", err) return err } |