aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-03 21:26:52 +0800
committerobscuren <geffobscura@gmail.com>2014-02-03 21:26:52 +0800
commit7730949221a95b89282713901bf4db25673cd95c (patch)
treebdae6de10c807cdf143015ed8826addf1e58015d /ethereum.go
parent5e36e3ccc7fad6d0b40c7f95be4f02e0cafdb2e2 (diff)
downloadgo-tangerine-7730949221a95b89282713901bf4db25673cd95c.tar
go-tangerine-7730949221a95b89282713901bf4db25673cd95c.tar.gz
go-tangerine-7730949221a95b89282713901bf4db25673cd95c.tar.bz2
go-tangerine-7730949221a95b89282713901bf4db25673cd95c.tar.lz
go-tangerine-7730949221a95b89282713901bf4db25673cd95c.tar.xz
go-tangerine-7730949221a95b89282713901bf4db25673cd95c.tar.zst
go-tangerine-7730949221a95b89282713901bf4db25673cd95c.zip
Block processing during mining
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go5
1 files changed, 3 insertions, 2 deletions
diff --git a/ethereum.go b/ethereum.go
index 680e52325..5cbf86665 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -7,7 +7,7 @@ import (
"github.com/ethereum/eth-go"
"github.com/ethereum/ethchain-go"
"github.com/ethereum/ethutil-go"
- "github.com/ethereum/ethwire-go"
+ _ "github.com/ethereum/ethwire-go"
"log"
"os"
"os/signal"
@@ -92,7 +92,8 @@ func main() {
ethereum.BlockManager.ApplyTransactions(block, block.Transactions())
// Search the nonce
block.Nonce = pow.Search(block)
- ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.RlpValue().Value})
+ ethereum.BlockManager.ProcessBlock(block)
+ //ethereum.Broadcast(ethwire.MsgBlockTy, []interface{}{block.RlpValue().Value})
log.Println("\n+++++++ MINED BLK +++++++\n", block.String())
}
}()