diff options
author | Maran <maran.hidskes@gmail.com> | 2014-03-24 17:26:19 +0800 |
---|---|---|
committer | Maran <maran.hidskes@gmail.com> | 2014-03-24 17:26:19 +0800 |
commit | 6724d27c0c897f116cac3163230f043e80304f91 (patch) | |
tree | 4e3f9c0225881c2b6a12deb5f223ee9b139d517d /testing.go | |
parent | 3002570085c6823da4b8e12015eafa4bd87177fb (diff) | |
parent | 642630db15a793cf0a0f7fbd827daee364df5423 (diff) | |
download | dexon-6724d27c0c897f116cac3163230f043e80304f91.tar.gz dexon-6724d27c0c897f116cac3163230f043e80304f91.tar.zst dexon-6724d27c0c897f116cac3163230f043e80304f91.zip |
Merge master into miner branch
Diffstat (limited to 'testing.go')
-rw-r--r-- | testing.go | 33 |
1 files changed, 0 insertions, 33 deletions
diff --git a/testing.go b/testing.go deleted file mode 100644 index 849089a5d..000000000 --- a/testing.go +++ /dev/null @@ -1,33 +0,0 @@ -package main - -/* - -import ( - _"fmt" -) - -// This will eventually go away -var Db *MemDatabase - -func Testing() { - db, _ := NewMemDatabase() - Db = db - - bm := NewBlockManager() - - tx := NewTransaction("\x00", 20, []string{"PUSH"}) - txData := tx.RlpEncode() - //fmt.Printf("%q\n", txData) - - copyTx := &Transaction{} - copyTx.RlpDecode(txData) - //fmt.Println(tx) - //fmt.Println(copyTx) - - tx2 := NewTransaction("\x00", 20, []string{"SET 10 6", "LD 10 10"}) - - blck := CreateTestBlock([]*Transaction{tx2, tx}) - - bm.ProcessBlock( blck ) -} -*/ |