-
Notifications
You must be signed in to change notification settings - Fork 370
validate bundles as they come in #1820
base: white-flag
Are you sure you want to change the base?
validate bundles as they come in #1820
Conversation
* Fix python-regression utilities to support Python3 * Python3 'str' type does not support 'decode()' anymore, everything is utf-8 by default
* added bundle validity rules * commented on test and added invalid bundle tests * Fix: lower error severity for faulty neighbor to warning (iotaledger#1710) Co-authored-by: Dyrell Chapman <[email protected]>
…r#1802) * Enforce rules via flag * make bundle validator more testable * added test * fix formatting * fix mockito exception
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.
Do you satisfy requirement 1 ("when a tail solidifies")?
Also tagging @DyrellC to have his opinion on how this will be done once his PRs are merged
Currently, I'm counting only on |
Hmm I think no... The problem with calling Even though that if you read the #protocol channel on discord you will see I am thinking of patching 1.9.0 with this |
As it is right now it does add tails to the propagation queue as per
but it does not account for a transaction that solidifies at a later point. If we want to make sure we're catching every bundle as it's going through then it may make more sense to wait for 1805 and 1821 to get mergedd so that we have a queue for solidification. With that in place we can then have any transaction that makes it through checkSolidity it then performs a bundle validity check from the transaction solidifier while updating the state of the transactions and placing them into the propagation queue. If that's the approach we think makes the most sense, then replacing the |
Description
This adds a new
QuickBundleValidation
stage betweenReceived
andBroadcast
stages.If the tx submitted to this stage is solid & is a tail, it propagates it via
TransactionValidator#addSolidTransaction
Fixes #1810
Type of change
How Has This Been Tested?
Checklist: