aboutsummaryrefslogtreecommitdiffstats
path: root/ethchain/block_manager_test.go
diff options
context:
space:
mode:
authorobscuren <geffobscura@gmail.com>2014-02-24 19:44:29 +0800
committerobscuren <geffobscura@gmail.com>2014-02-24 19:44:29 +0800
commit88a9c62fccd16a782e7d7221daf6b6f207c22097 (patch)
tree7cc5fd865b03d90e206c070ebfed780bf893361b /ethchain/block_manager_test.go
parentb29c1eecd104de58611b9a17a68b48321fd40e87 (diff)
downloaddexon-88a9c62fccd16a782e7d7221daf6b6f207c22097.tar.gz
dexon-88a9c62fccd16a782e7d7221daf6b6f207c22097.tar.zst
dexon-88a9c62fccd16a782e7d7221daf6b6f207c22097.zip
Proper tests
Diffstat (limited to 'ethchain/block_manager_test.go')
-rw-r--r--ethchain/block_manager_test.go10
1 files changed, 7 insertions, 3 deletions
diff --git a/ethchain/block_manager_test.go b/ethchain/block_manager_test.go
index df3e56e5e..ec4fbe8c5 100644
--- a/ethchain/block_manager_test.go
+++ b/ethchain/block_manager_test.go
@@ -22,8 +22,12 @@ func TestVm(t *testing.T) {
"1",
"PUSH",
"2",
- "STOP",
})
- ctrct := NewTransaction(ContractAddr, big.NewInt(200000000), script)
- bm.ApplyTransactions(block, []*Transaction{ctrct})
+ tx := NewTransaction(ContractAddr, big.NewInt(200000000), script)
+ addr := tx.Hash()[12:]
+ bm.ApplyTransactions(block, []*Transaction{tx})
+
+ tx2 := NewTransaction(addr, big.NewInt(1e17), nil)
+ tx2.Sign([]byte("aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa"))
+ bm.ApplyTransactions(block, []*Transaction{tx2})
}