github.com/annchain/OG@v0.0.9/og/types/sequencer_test.go (about) 1 package types 2 3 import ( 4 "fmt" 5 "github.com/annchain/OG/arefactor/og/types" 6 "github.com/annchain/OG/common" 7 "testing" 8 ) 9 10 func TestSampleSequencer(t *testing.T) { 11 s := &Sequencer{ 12 //Hash: common.Hash{}, 13 ParentsHash: types.Hashes{types.HexToHash("0xCCDD"), types.HexToHash("0xEEFF")}, 14 Height: 12, 15 MineNonce: 23, 16 Weight: 4, 17 AccountNonce: 0, 18 Issuer: common.HexToAddress("0x33"), 19 //Signature: nil, 20 //PublicKey: nil, 21 StateRoot: types.Hash{}, 22 //Proposing: false, 23 } 24 fmt.Println(s) 25 } 26 27 func TestSigning(t *testing.T) { 28 // TODO 29 }