We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 8930df2 commit 38ccf25Copy full SHA for 38ccf25
packages/blockchain/src/index.ts
@@ -567,6 +567,10 @@ export default class Blockchain implements BlockchainInterface {
567
if (auth) {
568
// Authorize new signer
569
activeSigners.push(beneficiary)
570
+ activeSigners.sort((a, b) => {
571
+ // Sort by buffer size
572
+ return a.toBuffer().compare(b.toBuffer())
573
+ })
574
// Discard votes for added signer
575
this._cliqueLatestVotes = this._cliqueLatestVotes.filter(
576
(vote) => !vote[1][1].equals(beneficiary)
0 commit comments