Testing
This commit is contained in:
parent
79c89c0bcd
commit
40dc4d0259
@ -13,13 +13,13 @@ func Testing() {
|
|||||||
|
|
||||||
bm := NewBlockManager()
|
bm := NewBlockManager()
|
||||||
|
|
||||||
tx := NewTransaction("\x00", 20, []string{
|
tx := NewTransaction("\x00", 20, []string{"PSH 10"})
|
||||||
"PSH 10",
|
|
||||||
})
|
|
||||||
txData := tx.MarshalRlp()
|
txData := tx.MarshalRlp()
|
||||||
|
|
||||||
copyTx := &Transaction{}
|
copyTx := &Transaction{}
|
||||||
copyTx.UnmarshalRlp(txData)
|
copyTx.UnmarshalRlp(txData)
|
||||||
|
fmt.Println(tx)
|
||||||
|
fmt.Println(copyTx)
|
||||||
|
|
||||||
tx2 := NewTransaction("\x00", 20, []string{"SET 10 6", "LD 10 10"})
|
tx2 := NewTransaction("\x00", 20, []string{"SET 10 6", "LD 10 10"})
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user