@@ -145,7 +145,7 @@ func TestPseudonode(t *testing.T) {
145145 sLogger := serviceLogger {logging .NewLogger ()}
146146 sLogger .SetLevel (logging .Warn )
147147
148- keyManager := simpleKeyManager (accounts )
148+ keyManager := makeRecordingKeyManager (accounts )
149149 pb := makePseudonode (pseudonodeParams {
150150 factory : testBlockFactory {Owner : 0 },
151151 validator : testBlockValidator {},
@@ -222,7 +222,12 @@ func TestPseudonode(t *testing.T) {
222222 }
223223 messageEvent , typeOk := ev .(messageEvent )
224224 assert .True (t , true , typeOk )
225+ // Verify votes are recorded - everyone is voting and proposing blocks.
226+ keyManager .mutex .Lock ()
227+ assert .Equal (t , startRound , keyManager .recording [messageEvent .Input .Vote .R .Sender ][account .Vote ])
228+ assert .Equal (t , startRound , keyManager .recording [messageEvent .Input .Vote .R .Sender ][account .BlockProposal ])
225229 events [messageEvent .t ()] = append (events [messageEvent .t ()], messageEvent )
230+ keyManager .mutex .Unlock ()
226231 }
227232 assert .Subset (t , []int {5 , 6 , 7 , 8 , 9 , 10 }, []int {len (events [voteVerified ])})
228233 assert .Equal (t , 0 , len (events [payloadVerified ]))
@@ -390,6 +395,9 @@ func (k *KeyManagerProxy) VotingKeys(votingRound, balanceRound basics.Round) []a
390395 return k .target (votingRound , balanceRound )
391396}
392397
398+ func (k * KeyManagerProxy ) RecordAsync (account basics.Address , round basics.Round , action account.ParticipationAction ) {
399+ }
400+
393401func TestPseudonodeLoadingOfParticipationKeys (t * testing.T ) {
394402 partitiontest .PartitionTest (t )
395403
@@ -403,7 +411,7 @@ func TestPseudonodeLoadingOfParticipationKeys(t *testing.T) {
403411 sLogger := serviceLogger {logging .NewLogger ()}
404412 sLogger .SetLevel (logging .Warn )
405413
406- keyManager := simpleKeyManager (accounts )
414+ keyManager := makeRecordingKeyManager (accounts )
407415 pb := makePseudonode (pseudonodeParams {
408416 factory : testBlockFactory {Owner : 0 },
409417 validator : testBlockValidator {},
0 commit comments