-
Notifications
You must be signed in to change notification settings - Fork 72
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Only accept control transactions over the control transaction topic #2627
Conversation
72ad684
to
dc88d07
Compare
type Error = ControlTransactionError; | ||
|
||
fn try_from(tx: Transaction) -> Result<ControlTransaction, ControlTransactionError> { | ||
if tx.sender_type != AccountType::Staking && tx.recipient_type != AccountType::Staking { |
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.
Should we also check if the value is 0 here?
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 discussed this shortly, and the answer was yes. However, since that is a breaking change, it cannot go into the next (compatible) testnet release.
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.
Signaling transactions also have TransactionFlags::SIGNALING
set, but AFAIK the combination of that flag and zero value is already checked in the transaction's internal validity and/or parser.
The parsed IncomingStakingTransactionData
has a .is_signaling()
method:
pub fn is_signaling(&self) -> bool { |
0e81d31
to
c1d958d
Compare
Don't verify contributions whose contributors are a subset of the already verified contributors.
Bumps the minor-and-patch-updates group with 1 update: [derive_more](https://github.com/JelteF/derive_more). Updates `derive_more` from 0.99.17 to 0.99.18 - [Release notes](https://github.com/JelteF/derive_more/releases) - [Changelog](https://github.com/JelteF/derive_more/blob/v0.99.18/CHANGELOG.md) - [Commits](JelteF/derive_more@v0.99.17...v0.99.18) --- updated-dependencies: - dependency-name: derive_more dependency-type: direct:production update-type: version-update:semver-patch dependency-group: minor-and-patch-updates ... Signed-off-by: dependabot[bot] <[email protected]>
Bumps [docker/build-push-action](https://github.com/docker/build-push-action) from 5.4.0 to 6.0.0. - [Release notes](https://github.com/docker/build-push-action/releases) - [Commits](docker/build-push-action@ca052bb...c382f71) --- updated-dependencies: - dependency-name: docker/build-push-action dependency-type: direct:production update-type: version-update:semver-major ... Signed-off-by: dependabot[bot] <[email protected]>
Do this by using a wrapper that only accepts control transactions. Fixes #2614.
c1d958d
to
ca3dc07
Compare
Do this by using a wrapper that only accepts control transactions.
Fixes #2614.