validate bundles as they come in#1820
validate bundles as they come in#1820acha-bill wants to merge 11 commits intoiotaledger-archive:white-flagfrom
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-archive#1710) Co-authored-by: Dyrell Chapman <dyrell.chapman@iota.org>
…r-archive#1802) * Enforce rules via flag * make bundle validator more testable * added test * fix formatting * fix mockito exception
GalRogozinski
left a comment
There was a problem hiding this comment.
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
QuickBundleValidationstage betweenReceivedandBroadcaststages.If the tx submitted to this stage is solid & is a tail, it propagates it via
TransactionValidator#addSolidTransactionFixes #1810
Type of change
How Has This Been Tested?
Checklist: