Skip to content
This repository has been archived by the owner on Nov 6, 2020. It is now read-only.

refactored loading transaction json tests #853

Merged
merged 3 commits into from
Mar 29, 2016
Merged

refactored loading transaction json tests #853

merged 3 commits into from
Mar 29, 2016

Conversation

debris
Copy link
Collaborator

@debris debris commented Mar 29, 2016

still todo (in next prs):

  • completely get rid of FromJson trait
  • move uint and hash deserialization to rpc module
  • make uint deserialization lenient (so it accepts, plain numbers)

@debris debris added the A0-pleasereview 🤓 Pull request needs code review. label Mar 29, 2016
let number: Option<u64> = test.block_number.map(Into::into);
let schedule = match number {
None => &old_schedule,
Some(x) if x < 1_000_000 => &old_schedule,
Copy link
Contributor

Choose a reason for hiding this comment

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

should be 1_150_000

@gavofyork
Copy link
Contributor

does this whole way of deserialisation now mean that we do an extra set of copies? i.e. JSON -> ethjson::struct, then ethjson::struct -> eth::struct ? that seems rather wasteful if so.

@debris
Copy link
Collaborator Author

debris commented Mar 29, 2016

does this whole way of deserialisation now mean that we do an extra set of copies?

no values are copied. There are just move operations.

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Mar 29, 2016
@gavofyork
Copy link
Contributor

looks ok to me (but have't done a deep review - relying on the tests for that :)

@NikVolf NikVolf merged commit 3e09f99 into master Mar 29, 2016
@NikVolf NikVolf deleted the json_tx_refactor branch March 29, 2016 23:32
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A8-looksgood 🦄 Pull request is reviewed well.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants