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

UnverifiedTransaction type #4134

Merged
merged 14 commits into from
Jan 13, 2017
Merged

UnverifiedTransaction type #4134

merged 14 commits into from
Jan 13, 2017

Conversation

tomusdrw
Copy link
Collaborator

Introduces UnverifiedTransaction, which represents transaction decoded from RLP with unrecovered sender.

SignedTransaction now always has hash and sender recovered, and recovery happens only once in predictable place. This also get's rid of Cell in transaction making it possible to be shared between threads (when Arced).

Tomasz Drwięga added 6 commits January 10, 2017 19:31
Conflicts:
	ethcore/light/src/client.rs
	ethcore/src/block.rs
	ethcore/src/engines/authority_round.rs
	ethcore/src/engines/basic_authority.rs
	ethcore/src/engines/tendermint/mod.rs
	ethcore/src/miner/banning_queue.rs
	ethcore/src/miner/miner.rs
	ethcore/src/miner/transaction_queue.rs
	ethcore/src/types/transaction.rs
@tomusdrw tomusdrw added A0-pleasereview 🤓 Pull request needs code review. M4-core ⛓ Core client code / Rust. labels Jan 11, 2017
}
/// Clones unsigned part of this transaction.
pub fn to_unsigned(&self) -> Transaction {
self.unsigned.clone()
Copy link
Contributor

Choose a reason for hiding this comment

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

as_unsigned -> &Transaction with the relevant call sites using as_unsigned().clone() would fit the naming convention better.

@rphmeier rphmeier added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jan 12, 2017
@gavofyork gavofyork merged commit e11353f into master Jan 13, 2017
@gavofyork gavofyork deleted the signed-tx branch January 13, 2017 08:51
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. M4-core ⛓ Core client code / Rust.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants