From 874bc808cbbf0124aa1c9a9a99d5f2782f6a1677 Mon Sep 17 00:00:00 2001 From: Robert Habermeier Date: Tue, 14 Jun 2016 18:12:05 +0200 Subject: [PATCH] add some missing header setters --- ethcore/src/header.rs | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/ethcore/src/header.rs b/ethcore/src/header.rs index 0941c9ca6..ab376113c 100644 --- a/ethcore/src/header.rs +++ b/ethcore/src/header.rs @@ -149,6 +149,16 @@ impl Header { /// Set the number field of the header. pub fn set_parent_hash(&mut self, a: H256) { self.parent_hash = a; self.note_dirty(); } + /// Set the uncles hash field of the header. + pub fn set_uncles_hash(&mut self, a: H256) { self.uncles_hash = a; self.note_dirty(); } + /// Set the state root field of the header. + pub fn set_state_root(&mut self, a: H256) { self.state_root = a; self.note_dirty(); } + /// Set the transactions root field of the header. + pub fn set_transactions_root(&mut self, a: H256) { self.transactions_root = a; self.note_dirty() } + /// Set the receipts root field of the header. + pub fn set_receipts_root(&mut self, a: H256) { self.receipts_root = a; self.note_dirty() } + /// Set the log bloom field of the header. + pub fn set_log_bloom(&mut self, a: LogBloom) { self.log_bloom = a; self.note_dirty() } /// Set the timestamp field of the header. pub fn set_timestamp(&mut self, a: u64) { self.timestamp = a; self.note_dirty(); } /// Set the timestamp field of the header to the current time.