Skip to content

Commit 7cf8c67

Browse files
committed
Include signing key in batch processor identifier
Messages from the same identity but different signing keys must be processed into different batches. If the signing key of the message does not match the signing key of the batch, the message will be rejected. Signed-off-by: Andrew Richardson <[email protected]>
1 parent 0b1777a commit 7cf8c67

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

internal/batch/batch_manager.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright © 2022 Kaleido, Inc.
1+
// Copyright © 2023 Kaleido, Inc.
22
//
33
// SPDX-License-Identifier: Apache-2.0
44
//
@@ -135,7 +135,7 @@ type dispatcher struct {
135135
}
136136

137137
func (bm *batchManager) getProcessorKey(identity *core.SignerRef, groupID *fftypes.Bytes32) string {
138-
return fmt.Sprintf("%s|%v", identity.Author, groupID)
138+
return fmt.Sprintf("%s|%s|%v", identity.Author, identity.Key, groupID)
139139
}
140140

141141
func (bm *batchManager) getDispatcherKey(txType core.TransactionType, msgType core.MessageType) string {

0 commit comments

Comments
 (0)