OSDN Git Service

add free gas (#295)
[bytom/vapor.git] / protocol / validation / block_test.go
index 6749963..f7a0f7b 100644 (file)
@@ -338,10 +338,12 @@ func TestValidateBlock(t *testing.T) {
                        block: &bc.Block{
                                ID: bc.Hash{V0: 1},
                                BlockHeader: &bc.BlockHeader{
                        block: &bc.Block{
                                ID: bc.Hash{V0: 1},
                                BlockHeader: &bc.BlockHeader{
-                                       Version:         1,
-                                       Height:          1,
-                                       Timestamp:       1523352601000,
-                                       PreviousBlockId: &parentHash,
+                                       Version:               1,
+                                       Height:                1,
+                                       Timestamp:             1523352601000,
+                                       PreviousBlockId:       &parentHash,
+                                       TransactionsRoot:      &bc.Hash{V0: 16229071813194843118, V1: 7413717724217377663, V2: 10255217553502780716, V3: 17975900656333257644},
+                                       TransactionStatusHash: &txStatusHash,
                                },
                                Transactions: []*bc.Tx{
                                        types.MapTx(&types.TxData{
                                },
                                Transactions: []*bc.Tx{
                                        types.MapTx(&types.TxData{
@@ -362,7 +364,7 @@ func TestValidateBlock(t *testing.T) {
                                },
                        },
                        parent: parent,
                                },
                        },
                        parent: parent,
-                       err:    vm.ErrRunLimitExceeded,
+                       err:    nil,
                },
        }
 
                },
        }