Skip to content

Conversation

@0xferrous
Copy link
Contributor

Motivation

If the signing account itself broadcasts the authorization, the nonce is incremented and the authorization becomes invalid if it is signed for the next_nonce instead of next_nonce + 1.

Solution

Add a new option --self-broadcast to indicate the signed authorization is intended to be broadcasted by the signing account. This is used to determine the nonce for the authorization that will be valid(i.e. next_nonce + 1) for the broadcasting transaction.

PR Checklist

  • Added Tests
  • Added Documentation
  • Breaking changes

Add a new option `--self-broadcast` to indicate the signed authorization
is intended to be broadcasted by the signing account. This is used to
determine the nonce for the authorization that will be valid for the
broadcasting transaction. If the signing account itself broadcasts the
authorization, the nonce is incremented and the authorization becomes
invalid if it is signed for the `next_nonce` instead of `next_nonce + 1`.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

1 participant