Skip to content

Commit 1db6151

Browse files
chris124567ChrisSchinnerl
authored andcommitted
fix tests
1 parent 660ce82 commit 1db6151

File tree

2 files changed

+4
-1
lines changed

2 files changed

+4
-1
lines changed

persist/sqlite/consensus_test.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -53,6 +53,7 @@ func newTestChain(t testing.TB, v2 bool, modifyGenesis func(*consensus.Network,
5353
if v2 {
5454
network.HardforkV2.AllowHeight = 1
5555
network.HardforkV2.RequireHeight = 2
56+
network.HardforkV2.FinalCutHeight = 3
5657
}
5758
if modifyGenesis != nil {
5859
modifyGenesis(network, genesisBlock)
@@ -824,6 +825,7 @@ func BenchmarkApplyRevert(b *testing.B) {
824825
n := newTestChain(b, false, func(network *consensus.Network, genesisBlock types.Block) {
825826
network.HardforkV2.AllowHeight = 1
826827
network.HardforkV2.RequireHeight = 1_000_000
828+
network.HardforkV2.FinalCutHeight = 1_000_001
827829
genesisBlock.Transactions[0].SiacoinOutputs[0].Address = addr1
828830
})
829831
genesisTxn := n.genesis().Transactions[0]

persist/sqlite/scan_test.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -233,6 +233,7 @@ func TestScan(t *testing.T) {
233233
network, genesisBlock := ctestutil.V2Network()
234234
network.HardforkV2.AllowHeight = 1
235235
network.HardforkV2.RequireHeight = 5
236+
network.HardforkV2.FinalCutHeight = 6
236237

237238
cm, _, w := startTestNode(t, network, genesisBlock)
238239

@@ -296,7 +297,7 @@ func TestScan(t *testing.T) {
296297
RegistryEntriesTotal: 50,
297298
}
298299
v2Settings := proto4.HostSettings{
299-
ProtocolVersion: [3]uint8{5, 0, 1},
300+
ProtocolVersion: [3]uint8{5, 0, 2},
300301
Release: "test",
301302
AcceptingContracts: true,
302303
WalletAddress: w.Address(),

0 commit comments

Comments
 (0)