@@ -202,12 +202,12 @@ func testNetworkImplMixed(t *testing.T, nodesCount int) {
202
202
nets , counters := spinNetwork (t , nodesCount )
203
203
defer shutdownNetwork (nets , counters )
204
204
205
- nets [0 ].broadcastTimeout (protocol .AgreementVoteTag , []byte {1 }, testNetTimeout )
206
- nets [0 ].broadcastTimeout (protocol .ProposalPayloadTag , []byte {1 }, testNetTimeout )
207
- nets [0 ].broadcastTimeout (protocol .ProposalPayloadTag , []byte {1 }, testNetTimeout )
208
- nets [0 ].broadcastTimeout (protocol .VoteBundleTag , []byte {1 }, testNetTimeout )
209
- nets [0 ].broadcastTimeout (protocol .VoteBundleTag , []byte {1 }, testNetTimeout )
210
- nets [0 ].broadcastTimeout (protocol .VoteBundleTag , []byte {1 }, testNetTimeout )
205
+ nets [0 ].Broadcast (protocol .AgreementVoteTag , []byte {1 })
206
+ nets [0 ].Broadcast (protocol .ProposalPayloadTag , []byte {1 })
207
+ nets [0 ].Broadcast (protocol .ProposalPayloadTag , []byte {1 })
208
+ nets [0 ].Broadcast (protocol .VoteBundleTag , []byte {1 })
209
+ nets [0 ].Broadcast (protocol .VoteBundleTag , []byte {1 })
210
+ nets [0 ].Broadcast (protocol .VoteBundleTag , []byte {1 })
211
211
for i , counter := range counters {
212
212
if i != 0 {
213
213
if ! counter .verify (t , 1 , 2 , 3 ) {
@@ -228,14 +228,14 @@ func testNetworkImplMixed2(t *testing.T, nodesCount int) {
228
228
229
229
const loadSize = 12
230
230
for i := byte (0 ); i < loadSize ; i ++ {
231
- ok := nets [0 ].broadcastTimeout (protocol .AgreementVoteTag , []byte {i }, testNetTimeout )
231
+ ok := nets [0 ].Broadcast (protocol .AgreementVoteTag , []byte {i })
232
232
assert .NoError (t , ok )
233
233
if i % 2 == 0 {
234
- ok = nets [0 ].broadcastTimeout (protocol .ProposalPayloadTag , []byte {i }, testNetTimeout )
234
+ ok = nets [0 ].Broadcast (protocol .ProposalPayloadTag , []byte {i })
235
235
assert .NoError (t , ok )
236
236
}
237
237
if i % 4 == 0 {
238
- ok = nets [0 ].broadcastTimeout (protocol .VoteBundleTag , []byte {i }, testNetTimeout )
238
+ ok = nets [0 ].Broadcast (protocol .VoteBundleTag , []byte {i })
239
239
assert .NoError (t , ok )
240
240
}
241
241
}
@@ -266,14 +266,14 @@ func testNetworkImplReordered(t *testing.T, nodesCount int) {
266
266
wg .Add (loadSize )
267
267
for i := byte (0 ); i < loadSize ; i ++ {
268
268
go func (i byte ) {
269
- ok := nets [0 ].broadcastTimeout (protocol .AgreementVoteTag , []byte {i }, testNetTimeout )
269
+ ok := nets [0 ].Broadcast (protocol .AgreementVoteTag , []byte {i })
270
270
assert .NoError (t , ok )
271
271
if i % 2 == 0 {
272
- ok = nets [0 ].broadcastTimeout (protocol .ProposalPayloadTag , []byte {i }, testNetTimeout )
272
+ ok = nets [0 ].Broadcast (protocol .ProposalPayloadTag , []byte {i })
273
273
assert .NoError (t , ok )
274
274
}
275
275
if i % 4 == 0 {
276
- ok = nets [0 ].broadcastTimeout (protocol .VoteBundleTag , []byte {i }, testNetTimeout )
276
+ ok = nets [0 ].Broadcast (protocol .VoteBundleTag , []byte {i })
277
277
assert .NoError (t , ok )
278
278
}
279
279
wg .Done ()
@@ -323,7 +323,7 @@ func testNetworkImplRebroadcast(t *testing.T, nodesCount int) {
323
323
rebroadcastNodes = 3
324
324
}
325
325
for i := byte (0 ); i < byte (rebroadcastNodes ); i ++ {
326
- ok := nets [i ].broadcastTimeout (protocol .AgreementVoteTag , []byte {i , i + 1 }, testNetTimeout )
326
+ ok := nets [i ].Broadcast (protocol .AgreementVoteTag , []byte {i , i + 1 })
327
327
assert .NoError (t , ok )
328
328
}
329
329
0 commit comments