openethereum/rpc/src/v1
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
..
helpers Add timeout for eth_getWork call (#1975) 2016-08-23 17:07:00 +02:00
impls Make the block header struct's internals private (#2000) 2016-08-29 11:35:23 +02:00
tests Signature cleanup (#1921) 2016-08-24 18:35:21 +02:00
traits Fix several RPCs (#1926) 2016-08-17 19:25:02 +02:00
types Fixing serde overflow error (#1977) 2016-08-23 10:10:12 +02:00
mod.rs RPC errors & logs (#1845) 2016-08-08 17:25:15 +02:00