@@ -3,6 +3,7 @@ package node
33import (
44 "context"
55 "crypto/rand"
6+ "fmt"
67 mrand "math/rand"
78 "strconv"
89 "strings"
@@ -127,9 +128,7 @@ func TestTxGossipingAndAggregation(t *testing.T) {
127128 require .NoError (err )
128129 nodeBlock , err := nodes [i ].Store .LoadBlock (h )
129130 require .NoError (err )
130- // Only Intermediate state roots set by block aggregator are relevant, removed for sake of comparison
131- nodeBlock .Data .IntermediateStateRoots .RawRootsList = nil
132- assert .Equal (aggBlock , nodeBlock )
131+ assert .Equal (aggBlock , nodeBlock , fmt .Sprintf ("height: %d" , h ))
133132 }
134133 }
135134}
@@ -186,8 +185,6 @@ func TestFraudProofTrigger(t *testing.T) {
186185 require .NoError (err )
187186 aggBlock , err := nodes [0 ].Store .LoadBlock (h )
188187 require .NoError (err )
189- // Only Intermediate state roots set by block aggregator are relevant, removed for sake of comparison
190- nodeBlock .Data .IntermediateStateRoots .RawRootsList = nil
191188 assert .Equal (aggBlock , nodeBlock )
192189 }
193190 }
@@ -198,7 +195,7 @@ func createAndStartNodes(clientNodes int, isMalicious bool, t *testing.T) ([]*No
198195 var wg sync.WaitGroup
199196 aggCtx , aggCancel := context .WithCancel (context .Background ())
200197 ctx , cancel := context .WithCancel (context .Background ())
201- nodes , apps := createNodes (aggCtx , ctx , clientNodes + 1 , true , & wg , t )
198+ nodes , apps := createNodes (aggCtx , ctx , clientNodes + 1 , isMalicious , & wg , t )
202199 startNodes (nodes , & wg , t )
203200 aggCancel ()
204201 time .Sleep (100 * time .Millisecond )
0 commit comments