Skip to content

Conversation

@codablock
Copy link

#2931 has removed the SyncTransaction signal but used some compatiblity code for CDSNotificationInterface so that things still worked. This PR removes the compatibility code and refactors/reimplements signal handling in a way that it doesn't need SyncTransaction anymore.

codablock added 13 commits May 27, 2019 16:40
CDSNotificationInterface::BlockDisconnected still calls SyncTransaction
with pprev to keep compatibility.
This commit moves all logic of SyncTransaction into ProcessNewTransaction
and then calls it from TransactionAddedToMempool and BlockConnected.

This won't compile/work at first, but the next commits will fix this.
ProcessNewTransaction is now only called with pindex != nullptr when a
block is connected but never when it is disconnected, so there is no need
to check for posInBlock anymore (we don't even have it now).
Also add code to remove entries in blockTxs when BlockDisconnected is
called.
…lockConnected

This removes the need for SyncTransaction
Instead of relying on CDSNotificationInterface running compatibility code.
This also removes locking of cs_main, as this seemed to be not needed.
@codablock codablock added this to the 14.1 milestone May 27, 2019
@UdjinM6 UdjinM6 changed the title Refactor validation signals for ChainLocks and InstantSend to get rid of SyncTransaction Refactor validation signals for ChainLocks, InstantSend and PrivateSend to get rid of SyncTransaction May 27, 2019
UdjinM6
UdjinM6 previously approved these changes May 27, 2019
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.

👍

utACK

@UdjinM6 UdjinM6 dismissed their stale review May 27, 2019 22:30

I have some concerns....

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.

re-utACK

@codablock codablock merged commit 53cce81 into dashpay:develop May 28, 2019
@codablock codablock deleted the pr_dsnotification branch May 28, 2019 16:26
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