Skip to content

Conversation

@PastaPastaPasta
Copy link
Member

I originally made this change to see how stuff would break... But then I had a problem... Nothing broke!

I'm not sure if the break if actually much deeper, and I just don't see everything breaking, but this change allowed me to start a wallet, with txindex off. When I did so, I expected IS to crash the wallet or something, but it... didn't... IS worked... Chainlocks worked... I think this is a result of the implementation of LLMQ based IS. Under the old IS model, individual inputs received locks, whereas in the new model (If I recall / read the code correctly) the entire tx gets locked. So whereas in the old system, you needed txindex when receiving IS, now you don't.

This also has the added benefit of allowing people to run pruned nodes which have all of Dash's lovely features like privatesend, instantsend and chainlocks enabled automagically

(Assuming everything is good in this PR) Regarding whether to merge into 0.16 or 0.17 I don't have much of a preference, ofc since it is my change I am going to want to see it in 16, however, this isn't a bug fix, and would likely cause more testing to be needed. Basically emotionally I want it in 16, but logically I think it should probably be after 16

Copy link

@UdjinM6 UdjinM6 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

nACK

Disabling txindex breaks Governance. Such nodes won't be able to validate gobject collaterals and will ban other nodes which sent them these messages. As a result they will also reject triggers and superblocks and fork off/stuck eventually, see discussion in #1743.

@PastaPastaPasta
Copy link
Member Author

In theory, c78bd0b would solve that issue. However I'm not sure this is the best way to go about this.

Probably best to do #3485 first and then once all is said and done with fLiteMode maybe look at being able to disable txindex w/o losing IS/CL functionality

@UdjinM6
Copy link

UdjinM6 commented May 16, 2020

@PastaPastaPasta
Copy link
Member Author

Superseded by #3488

@PastaPastaPasta PastaPastaPasta deleted the allow-txindex-off-full-mode branch June 11, 2020 05:59
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants