@@ -3,6 +3,7 @@ package node
3
3
import (
4
4
"context"
5
5
"crypto/rand"
6
+ "fmt"
6
7
mrand "math/rand"
7
8
"strconv"
8
9
"strings"
@@ -127,9 +128,7 @@ func TestTxGossipingAndAggregation(t *testing.T) {
127
128
require .NoError (err )
128
129
nodeBlock , err := nodes [i ].Store .LoadBlock (h )
129
130
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 ))
133
132
}
134
133
}
135
134
}
@@ -186,8 +185,6 @@ func TestFraudProofTrigger(t *testing.T) {
186
185
require .NoError (err )
187
186
aggBlock , err := nodes [0 ].Store .LoadBlock (h )
188
187
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
191
188
assert .Equal (aggBlock , nodeBlock )
192
189
}
193
190
}
@@ -198,7 +195,7 @@ func createAndStartNodes(clientNodes int, isMalicious bool, t *testing.T) ([]*No
198
195
var wg sync.WaitGroup
199
196
aggCtx , aggCancel := context .WithCancel (context .Background ())
200
197
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 )
202
199
startNodes (nodes , & wg , t )
203
200
aggCancel ()
204
201
time .Sleep (100 * time .Millisecond )
0 commit comments