aboutsummaryrefslogtreecommitdiffstats
path: root/testing.go
blob: 5e2aec02bab5b93c65cd1ad2c0757a6e8038f6ce (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
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.MarshalRlp()
  //fmt.Printf("%q\n", txData)

  copyTx := &Transaction{}
  copyTx.UnmarshalRlp(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 )
}
*/