aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
Diffstat (limited to 'ethchain')
-rw-r--r--ethchain/dagger.go4
-rw-r--r--ethchain/state_manager.go3
2 files changed, 2 insertions, 5 deletions
diff --git a/ethchain/dagger.go b/ethchain/dagger.go
index a80a9d421..9d2df4069 100644
--- a/ethchain/dagger.go
+++ b/ethchain/dagger.go
@@ -29,14 +29,14 @@ func (pow *EasyPow) Search(block *Block, reactChan chan ethutil.React) []byte {
for {
select {
case <-reactChan:
- log.Println("[pow] Received reactor event; breaking out.")
+ log.Println("[POW] Received reactor event; breaking out.")
return nil
default:
i++
if i%1234567 == 0 {
elapsed := time.Now().UnixNano() - start
hashes := ((float64(1e9) / float64(elapsed)) * float64(i)) / 1000
- log.Println("Hashing @", int64(hashes), "khash")
+ log.Println("[POW] Hashing @", int64(hashes), "khash")
}
sha := ethutil.Sha3Bin(big.NewInt(r.Int63()).Bytes())
diff --git a/ethchain/state_manager.go b/ethchain/state_manager.go
index 5692a1d88..d907141a4 100644
--- a/ethchain/state_manager.go
+++ b/ethchain/state_manager.go
@@ -214,9 +214,6 @@ func (sm *StateManager) CalculateTD(block *Block) bool {
// The new TD will only be accepted if the new difficulty is
// is greater than the previous.
- fmt.Println("new block td:", td)
- fmt.Println("cur block td:", sm.bc.TD)
-
if td.Cmp(sm.bc.TD) > 0 {
// Set the new total difficulty back to the block chain
sm.bc.SetTotalDifficulty(td)