Set disableoutputsubstitution to 'true' if used #485
Conversation
|
While im in here I might push another commit to just test different permutations of urls. Lmk if you guys prefere that in a different PR, a different commit or just part of the first commit |
|
Great catch I believe the spec requires use of |
Pull Request Test Coverage Report for Build 12795364998Details
💛 - Coveralls |
45f5cd9 to
f7aa4cb
Compare
You got it! |
|
Also fyi, some URL permutation tests live in |
f7aa4cb to
de2b625
Compare
disableoutputsubstitutiondisableoutputsubstitution to 'true' if used
tACK meaning you tested this behavior specifically or that you ran the test suite? By convention going forward I'd like tACK to mean the former |
I dont see any test coverage over reciever optional params. I was planning on writing some tests to cover those. Perhaps that belongs in a different PR.
Yeah let me see what I can do. It should be easy to write a regression test for this |
|
I just ran the test suite - good point moving forward. |
de2b625 to
63deaaf
Compare
Per [bip78](https://github.com/bitcoin/bips/blob/master/bip-0078.mediawiki#user-content-span_idoutputsubstitutionspanPayment_output_substitution) Currently the value is set to '1' if the sender decides to disable output substitution which then the reciever will just ignore.
63deaaf to
d3373a3
Compare
|
Merging to keep the queue flowing. Hoping to see a regression test but no expectation there since not excluding one is no regression in itself (edit: afaict). |
I did end up including a test to ensure this doesnt get accidentaly re-introduced. Would you have written a different test or expected something different? |
|
Oh you did! my bad, I didn't realize you pushed more code after I ACKed, we don't have the protection on that prevents that merge by default. This is what I would expect for a unit test, though send::serialize_url does make me wonder whether or not |
All good! Yeah we can add a branch protection to dismiss review on force updates. Yeah it would make sense to me if this url was more general not belonging to either the sender or reciever. Instead a shared type |
|
I set "Require approval of the most recent reviewable push" restriction on I believe url is general but optional query parameters that get sent are not. optional parameters are not abstracted in the sender, as demonstrated by the change was in send/mod.rs, they're only abstracted in the receiver/optional_parameters.rs. |
I noticed this when I was writing tests for my new multiparty optional param. In the sender if we are setting
disableoutputsubstitutionwe set it to a '1' value. However in the reciever we are parsing for 'true' string value if its set.