-
Notifications
You must be signed in to change notification settings - Fork 78
[ETCM-205] Add information about checkpoints in tx history #826
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
Conversation
074621e to
df49fda
Compare
mmrozek
left a comment
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM!
f8b1e37 to
078d45d
Compare
| def apply(keyPair: AsymmetricCipherKeyPair): Address = { | ||
| val pub = crypto.pubKeyFromKeyPair(keyPair) | ||
| Address(crypto.kec256(pub).drop(FirstByteOfAddress)) | ||
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
👍
KonradStaniec
left a comment
There was a problem hiding this 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)) |
There was a problem hiding this comment.
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
938ab76 to
7ccad81
Compare
…plex data structures
…tion history rpc method
7ccad81 to
4f9e6e4
Compare
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_generateCheckpointfor adding a checkpoint and checking if transactions from lower blocks are properly marked