diff options
author | obscuren <geffobscura@gmail.com> | 2014-01-17 23:57:42 +0800 |
---|---|---|
committer | obscuren <geffobscura@gmail.com> | 2014-01-17 23:57:42 +0800 |
commit | ddf82c333702e22d3cd7e5c693ad0603089a57a4 (patch) | |
tree | 893a3277f5222c152c2c65c465bbe73c08a20bc4 | |
parent | aed060a4ce59a5116ad774c2d8c0fbf857109287 (diff) | |
download | go-tangerine-ddf82c333702e22d3cd7e5c693ad0603089a57a4.tar.gz go-tangerine-ddf82c333702e22d3cd7e5c693ad0603089a57a4.tar.zst go-tangerine-ddf82c333702e22d3cd7e5c693ad0603089a57a4.zip |
Removed dagger broadcasting to the net
-rw-r--r-- | ethereum.go | 3 | ||||
-rw-r--r-- | testing.go | 4 |
2 files changed, 4 insertions, 3 deletions
diff --git a/ethereum.go b/ethereum.go index 83f656fe2..d74cb4ff2 100644 --- a/ethereum.go +++ b/ethereum.go @@ -65,7 +65,8 @@ func main() { go func() { for { res := dagger.Search(ethutil.Big("01001"), ethutil.BigPow(2, 36)) - server.Broadcast("blockmine", ethutil.Encode(res.String())) + log.Println("Res dagger", res) + //server.Broadcast("blockmine", ethutil.Encode(res.String())) } }() } diff --git a/testing.go b/testing.go index 5e2aec02b..849089a5d 100644 --- a/testing.go +++ b/testing.go @@ -16,11 +16,11 @@ func Testing() { bm := NewBlockManager() tx := NewTransaction("\x00", 20, []string{"PUSH"}) - txData := tx.MarshalRlp() + txData := tx.RlpEncode() //fmt.Printf("%q\n", txData) copyTx := &Transaction{} - copyTx.UnmarshalRlp(txData) + copyTx.RlpDecode(txData) //fmt.Println(tx) //fmt.Println(copyTx) |