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

Integrate state diffing into the ethcore JSONRPC #1206

Merged
merged 9 commits into from
Jun 5, 2016
Merged

Integrate state diffing into the ethcore JSONRPC #1206

merged 9 commits into from
Jun 5, 2016

Conversation

gavofyork
Copy link
Contributor

@gavofyork gavofyork commented Jun 2, 2016

Aside from the JSONRPC formatting, there is some repotting needed to being the PoD Account/State out of a tests-only config.

There's also a fix for eth_call. Mea culpa.

@gavofyork gavofyork added the A0-pleasereview 🤓 Pull request needs code review. label Jun 2, 2016
@@ -277,13 +276,19 @@ impl MinerService for Miner {
// give the sender max balance
state.sub_balance(&sender, &balance);
Copy link
Collaborator

Choose a reason for hiding this comment

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

Seems it needs a similar workaround as the code in client.
Isn't it possible to reuse the code here and in client?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

not sure what you're referring to here. this code hasn't changed in the PR.

Copy link
Collaborator

Choose a reason for hiding this comment

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

But similar code in client did. So if the code was invalid (possible overflow?) then I guess this here is too (only difference being pending vs latest/blocknumber)

Copy link
Contributor Author

@gavofyork gavofyork Jun 5, 2016

Choose a reason for hiding this comment

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

right. in that case it should really be filed as a new PR (my fault for including a half a fix, but that ship has sailed now).
i'll put in a fix for miner.rs now, but i think properly refactoring will have to wait for a future PR.

@tomusdrw tomusdrw added A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 3, 2016
@gavofyork gavofyork added A0-pleasereview 🤓 Pull request needs code review. and removed A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. labels Jun 5, 2016
@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jun 5, 2016
use ipc::binary::BinaryConvertError;
use std::fmt;
use std::mem;
use std::collections::VecDeque;

/// Transaction execution receipt.
#[derive(Debug, PartialEq, Clone, Binary)]
#[derive(Debug, PartialEq, Clone)]
Copy link
Collaborator

Choose a reason for hiding this comment

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

Executed is in types directory, so I assume that it should implement Binary. It's probably not an issue right now, cause no tests are failing, but it may interfere with Nikolay's pull requests and might be difficult to debug, because compiler plugins errors are hardly readable.

imo, we should keep derive from Binary and also implement it for StateDiff

Copy link
Contributor Author

Choose a reason for hiding this comment

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

this was discussed with @NikVolf and decided that although it will eventually need to be binary, the infrastructure is not yet in place to easily allow that and so it will remain for another PR.

@debris debris added A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. and removed A8-looksgood 🦄 Pull request is reviewed well. labels Jun 5, 2016
@gavofyork gavofyork added A0-pleasereview 🤓 Pull request needs code review. and removed A5-grumble 🔥 Pull request has minor issues that must be addressed before merging. labels Jun 5, 2016
@debris debris merged commit c8c47eb into master Jun 5, 2016
@debris debris deleted the diffing branch June 5, 2016 19:35
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
A0-pleasereview 🤓 Pull request needs code review.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants