From ddf82c333702e22d3cd7e5c693ad0603089a57a4 Mon Sep 17 00:00:00 2001 From: obscuren Date: Fri, 17 Jan 2014 16:57:42 +0100 Subject: [PATCH] Removed dagger broadcasting to the net --- ethereum.go | 3 ++- 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)