@@ -94,7 +94,6 @@ func TestNotChangeSingerListIfNothingProposedOrVoted(t *testing.T) {
9494
9595// Should call updateM1 at gap block, and update the snapshot if there are SM transactions involved
9696func TestUpdateSignerListIfVotedBeforeGap (t * testing.T ) {
97-
9897 blockchain , backend , parentBlock , signer , signFn := PrepareXDCTestBlockChain (t , GAP - 2 , params .TestXDPoSMockChainConfig )
9998 // Insert first Block 449
10099 t .Logf ("Inserting block with propose at 449..." )
@@ -168,7 +167,6 @@ func TestUpdateSignerListIfVotedBeforeGap(t *testing.T) {
168167
169168// Should call updateM1 before gap block, and update the snapshot if there are SM transactions involved
170169func TestCallUpdateM1WithSmartContractTranscation (t * testing.T ) {
171-
172170 blockchain , backend , currentBlock , signer , signFn := PrepareXDCTestBlockChain (t , GAP - 1 , params .TestXDPoSMockChainConfig )
173171 // Insert first Block 450 A
174172 t .Logf ("Inserting block with propose at 450 A..." )
@@ -205,7 +203,6 @@ func TestCallUpdateM1WithSmartContractTranscation(t *testing.T) {
205203
206204// Should call updateM1 and update snapshot when a forked block(at gap block number) is inserted back into main chain (Edge case)
207205func TestCallUpdateM1WhenForkedBlockBackToMainChain (t * testing.T ) {
208-
209206 blockchain , backend , currentBlock , signer , signFn := PrepareXDCTestBlockChain (t , GAP - 1 , params .TestXDPoSMockChainConfig )
210207 // Check initial signer, by default, acc3 is in the signerList
211208 signers , err := GetSnapshotSigner (blockchain , blockchain .CurrentBlock ().Header ())
@@ -356,9 +353,7 @@ func TestCallUpdateM1WhenForkedBlockBackToMainChain(t *testing.T) {
356353}
357354
358355func TestStatesShouldBeUpdatedWhenForkedBlockBecameMainChainAtGapBlock (t * testing.T ) {
359-
360356 blockchain , backend , parentBlock , signer , signFn := PrepareXDCTestBlockChain (t , GAP - 1 , params .TestXDPoSMockChainConfig )
361-
362357 state , err := blockchain .State ()
363358 if err != nil {
364359 t .Fatalf ("Failed while trying to get blockchain state" )
0 commit comments