Official Go implementation of the Ethereum protocol
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
go-ethereum/testing.go

34 lines
540 B

package main
11 years ago
/*
import (
11 years ago
_"fmt"
)
11 years ago
// This will eventually go away
var Db *MemDatabase
func Testing() {
11 years ago
db, _ := NewMemDatabase()
Db = db
bm := NewBlockManager()
11 years ago
tx := NewTransaction("\x00", 20, []string{"PUSH"})
txData := tx.RlpEncode()
11 years ago
//fmt.Printf("%q\n", txData)
copyTx := &Transaction{}
copyTx.RlpDecode(txData)
11 years ago
//fmt.Println(tx)
//fmt.Println(copyTx)
tx2 := NewTransaction("\x00", 20, []string{"SET 10 6", "LD 10 10"})
11 years ago
blck := CreateTestBlock([]*Transaction{tx2, tx})
bm.ProcessBlock( blck )
}
11 years ago
*/