openethereum/ethcore/src/blockchain
Nipunn Koorapati 4389742ca3 Make the block header struct's internals private (#2000)
* Make the block header struct's internals private

Currently, this involves a lot of explicit cloning, but we
could migrate the return types of the get_* functions to
be copies rather than references since they are mostly copy
types anyway.

I opted to eliminate the constructor in favor of using
Default::default() plus calling a bunch of setters. This
is similar to the model that a Google Protobuf client uses
and I think it looks fine.

* Drop some unnecessary cloning by comparing references

* Fix compiler errors from callsites in tests.
2016-08-29 11:35:23 +02:00
..
generator Make the block header struct's internals private (#2000) 2016-08-29 11:35:23 +02:00
best_block.rs cleaning up hash reexports 2016-08-03 18:05:17 +02:00
block_info.rs cleaning up hash reexports 2016-08-03 18:05:17 +02:00
blockchain.rs Make the block header struct's internals private (#2000) 2016-08-29 11:35:23 +02:00
cache.rs Bloomchain (#1014) 2016-05-26 18:24:51 +02:00
config.rs cli overhaul (#1600) 2016-07-25 16:09:47 +02:00
extras.rs Snapshot creation and restoration (#1679) 2016-08-05 17:00:46 +02:00
import_route.rs cleaning up hash reexports 2016-08-03 18:05:17 +02:00
mod.rs Snapshot creation and restoration (#1679) 2016-08-05 17:00:46 +02:00
update.rs cleaning up hash reexports 2016-08-03 18:05:17 +02:00