Skip to content

Conversation

@kapke
Copy link
Contributor

@kapke kapke commented Dec 2, 2020

Description

This PR adds information about tx being in checkpointed block or not to mantis_getAccountTransactions.
Also, as it is very useful - in this PR I've added a dependency on diffx - library which highlights the differences in compared data.

Testing

All tests should pass. One can also try to use qa_generateCheckpoint for adding a checkpoint and checking if transactions from lower blocks are properly marked

@kapke kapke requested review from lemastero and mmrozek December 2, 2020 23:46
@kapke kapke self-assigned this Dec 2, 2020
@kapke kapke changed the title [ETCM-205] Add diffx for improved reporting of failures involving complex data structures [ETCM-205] Add information about checkpoints in tx history Dec 3, 2020
@kapke kapke force-pushed the etcm-205-checkpoints-in-history branch from 074621e to df49fda Compare December 3, 2020 11:47
Copy link
Contributor

@mmrozek mmrozek left a comment

Choose a reason for hiding this comment

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

LGTM!

@kapke kapke force-pushed the etcm-205-checkpoints-in-history branch 3 times, most recently from f8b1e37 to 078d45d Compare December 3, 2020 13:28
@kapke kapke added the wallet label Dec 3, 2020
def apply(keyPair: AsymmetricCipherKeyPair): Address = {
val pub = crypto.pubKeyFromKeyPair(keyPair)
Address(crypto.kec256(pub).drop(FirstByteOfAddress))
}
Copy link
Contributor

Choose a reason for hiding this comment

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

👍

Copy link
Contributor

@KonradStaniec KonradStaniec left a comment

Choose a reason for hiding this comment

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

Only 1 minor comment


def apply(keyPair: AsymmetricCipherKeyPair): Address = {
val pub = crypto.pubKeyFromKeyPair(keyPair)
Address(crypto.kec256(pub).drop(FirstByteOfAddress))
Copy link
Contributor

Choose a reason for hiding this comment

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

minor: .drop(FirstByteOfAddress) is probably not necessary , as Address bytesting constructor takes only last 20byte also FirstByteOfAddress is weird name for something which drops 12 bytes

@kapke kapke force-pushed the etcm-205-checkpoints-in-history branch 2 times, most recently from 938ab76 to 7ccad81 Compare December 3, 2020 15:41
@kapke kapke force-pushed the etcm-205-checkpoints-in-history branch from 7ccad81 to 4f9e6e4 Compare December 3, 2020 18:21
@kapke kapke merged commit 7edd14b into develop Dec 3, 2020
@kapke kapke deleted the etcm-205-checkpoints-in-history branch December 3, 2020 18:41
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

5 participants