-
Notifications
You must be signed in to change notification settings - Fork 456
Add empty signature option - Closes #64670 #6474
Conversation
…i signature account
readonly minFeePerByte?: number; | ||
readonly baseFees?: BaseFee[]; | ||
readonly numberOfSignatures?: number; | ||
readonly numberOfEmptySignatures?: number; |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
we don't use signatures
param in this function, so we need to know how many is required and how many signatures are empty
@@ -37,14 +38,18 @@ const computeTransactionMinFee = ( | |||
trx: Record<string, unknown>, | |||
options?: Options, | |||
): bigint => { | |||
const mockSignatures = new Array( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Is it mock? maybe name it emptySignatures
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it's both 64bytes and 0 bytes, so empty is not correct I think
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
dummySignatures?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM
What was the problem?
This PR resolves #6470
How was it solved?
numberOfEmptySignatures
option to specify number of empty signatures to include in calculationHow was it tested?