Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UIP-0024 Implementation (CTOR/LTOR) #440

Merged
merged 40 commits into from
Jan 28, 2019
Merged

Conversation

castarco
Copy link

@castarco castarco commented Jan 16, 2019

This PR implements the UIP-0024 (Canonical Transactions Ordering Rule,
specifically LTOR, Lexicographical Transactions Ordering Rule).

Signed-off-by: Andres Correa Casablanca andres@thirdhash.com

@castarco castarco added feature New functionality consensus wip Work in progress which is not supposed to be merged yet labels Jan 16, 2019
@castarco castarco self-assigned this Jan 16, 2019
@cornelius
Copy link
Member

Separating the style related changes off certainly would make it easier to review this.

@castarco
Copy link
Author

Separating the style related changes off certainly would make it easier to review this.

On it.

src/coins.cpp Outdated Show resolved Hide resolved
src/txmempool.cpp Outdated Show resolved Hide resolved
src/txmempool.cpp Outdated Show resolved Hide resolved
@castarco castarco force-pushed the uip-0024-impl branch 2 times, most recently from aec1aab to 594e1c7 Compare January 17, 2019 11:18
@frolosofsky
Copy link
Member

frolosofsky commented Jan 17, 2019

I see a lot of stylistic changes in python files. Does it relate to this PR? Do we want to change this at all?

@scravy
Copy link
Member

scravy commented Jan 17, 2019

Maybe... I should split all the style-related changes into a different PR.

I think you should :-)

src/primitives/txid.h Outdated Show resolved Hide resolved
src/test/uint256_tests.cpp Outdated Show resolved Hide resolved
@castarco castarco force-pushed the uip-0024-impl branch 2 times, most recently from 08b2f68 to ba19501 Compare January 17, 2019 14:32
src/txmempool.cpp Outdated Show resolved Hide resolved
@castarco castarco force-pushed the uip-0024-impl branch 5 times, most recently from 709ff45 to 7da6274 Compare January 17, 2019 15:31
src/txmempool.cpp Outdated Show resolved Hide resolved
src/txmempool.h Outdated Show resolved Hide resolved
@castarco castarco changed the title [WIP] UIP-0024 Implementation (CTOR/LTOR) UIP-0024 Implementation (CTOR/LTOR) Jan 18, 2019
@castarco castarco removed the wip Work in progress which is not supposed to be merged yet label Jan 18, 2019
Andres Correa Casablanca added 22 commits January 28, 2019 11:52
Use swap instead of move in DisconnectedBlockTransactions::addForBlock
in order to avoid potential problems for reusing the parents variable
after having moved it.

Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
TxId is not strictly related to CTOR, so it's better to implement it in
a different PR.

Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
Signed-off-by: Andres Correa Casablanca <andres@thirdhash.com>
@scravy
Copy link
Member

scravy commented Jan 28, 2019

@Ruteri @kostyantyn you utACK'ed but did not approve. Meanwhile commits have been pushed. Could you re-review and check whether it's approvable for you now?

Copy link
Member

@cmihai cmihai left a comment

Choose a reason for hiding this comment

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

utACK 025789a

Copy link
Member

@Ruteri Ruteri left a comment

Choose a reason for hiding this comment

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

utACK 025789a

Copy link
Member

@kostyantyn kostyantyn left a comment

Choose a reason for hiding this comment

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

utACK 025789a

@castarco castarco merged commit 4031349 into dtr-org:master Jan 28, 2019
@castarco castarco deleted the uip-0024-impl branch February 7, 2019 10:53
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
consensus feature New functionality
Projects
None yet
Development

Successfully merging this pull request may close these issues.