aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain
diff options
context:
space:
mode:
authorMaran <maran.hidskes@gmail.com>2014-03-24 17:56:52 +0800
committerMaran <maran.hidskes@gmail.com>2014-03-24 17:56:52 +0800
commitec6ec62dd4f3c4132c79b33fc20467ba98c16f10 (patch)
tree50a87162834b8921601bdeda785985da884c5821 /ethchain
parent97786d03d57e1ca79e34ce5fd9aa172c61c3e665 (diff)
downloadgo-tangerine-ec6ec62dd4f3c4132c79b33fc20467ba98c16f10.tar.gz
go-tangerine-ec6ec62dd4f3c4132c79b33fc20467ba98c16f10.tar.zst
go-tangerine-ec6ec62dd4f3c4132c79b33fc20467ba98c16f10.zip
Remove some xtra logs
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)