aboutsummaryrefslogtreecommitdiffstats
path: root/ethereum.go
diff options
context:
space:
mode:
authorobscuren <obscuren@obscura.com>2013-12-28 22:18:23 +0800
committerobscuren <obscuren@obscura.com>2013-12-28 22:18:23 +0800
commit5198b7b9ebdfe1ef99627dadb07b87e18a039972 (patch)
tree0def935db14d1b971e6f74e03d0f2197be5e5c80 /ethereum.go
parentbd582d919bf3dfa68cce10ca506c39a4c2e2ea94 (diff)
downloaddexon-5198b7b9ebdfe1ef99627dadb07b87e18a039972.tar
dexon-5198b7b9ebdfe1ef99627dadb07b87e18a039972.tar.gz
dexon-5198b7b9ebdfe1ef99627dadb07b87e18a039972.tar.bz2
dexon-5198b7b9ebdfe1ef99627dadb07b87e18a039972.tar.lz
dexon-5198b7b9ebdfe1ef99627dadb07b87e18a039972.tar.xz
dexon-5198b7b9ebdfe1ef99627dadb07b87e18a039972.tar.zst
dexon-5198b7b9ebdfe1ef99627dadb07b87e18a039972.zip
Test code updated
Diffstat (limited to 'ethereum.go')
-rw-r--r--ethereum.go11
1 files changed, 9 insertions, 2 deletions
diff --git a/ethereum.go b/ethereum.go
index d3cecdc94..3e01f89b2 100644
--- a/ethereum.go
+++ b/ethereum.go
@@ -4,6 +4,8 @@ import (
"fmt"
)
+const Debug = false
+
func main() {
InitFees()
@@ -35,6 +37,11 @@ func main() {
bm.ProcessBlock( blck )
- //t := blck.MarshalRlp()
- //blck.UnmarshalRlp(t)
+
+ t := blck.MarshalRlp()
+ copyBlock := &Block{}
+ copyBlock.UnmarshalRlp(t)
+
+ fmt.Println(blck)
+ fmt.Println(copyBlock)
}