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

BlockChain sync and Client app #55

Merged
merged 36 commits into from Jan 11, 2016
Merged

BlockChain sync and Client app #55

merged 36 commits into from Jan 11, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Jan 7, 2016

No description provided.

@@ -272,7 +272,7 @@ impl BlockChain {
// create views onto rlp
let block = BlockView::new(bytes);
let header = block.header_view();
let hash = block.sha3();
let hash = header.sha3();
Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Please check this

Copy link
Contributor

Choose a reason for hiding this comment

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

correct

@arkpar
Copy link
Collaborator Author

arkpar commented Jan 7, 2016

Please check the client interface in src/client.rs, changes in header.rs and everything else :)

for i in 13..d.len() {
blockheader.seal.push(try!(Decodable::decode(&d[i])));
for i in 13..r.item_count() {
blockheader.seal.push(try!(r.val_at(i)))
Copy link
Contributor

Choose a reason for hiding this comment

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

this is now corrected in master (should be raw RLP, not the string value).

@@ -104,3 +104,7 @@ pub mod genesis;
pub mod views;
pub mod blockchain;
pub mod extras;
pub mod client;
Copy link
Collaborator

Choose a reason for hiding this comment

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

client module is missing ;)

file not found for module `client`
src/lib.rs:107 pub mod client;


#[derive(PartialEq, Eq, Debug)]
enum PeerAsking
{
Copy link
Contributor

Choose a reason for hiding this comment

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

putting {s on newlines, now? :-)

@arkpar
Copy link
Collaborator Author

arkpar commented Jan 9, 2016

All issues addressed

pub fn clear(&mut self) {
}

pub fn import_block(&mut self, bytes: &[u8]) -> ImportResult {
Copy link
Contributor

Choose a reason for hiding this comment

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

docs?

@@ -113,7 +113,7 @@ impl Spec {
let r = Rlp::new(&seal);
(0..self.seal_fields).map(|i| r.at(i).as_raw().to_vec()).collect()
},
hash: RefCell::new(None),
hash: RefCell::new(None)
Copy link
Contributor

Choose a reason for hiding this comment

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

always leave trailing comma, no?

gavofyork pushed a commit that referenced this pull request Jan 11, 2016
BlockChain sync and Client app
@gavofyork gavofyork merged commit b9bc953 into master Jan 11, 2016
@gavofyork gavofyork deleted the network branch January 11, 2016 11:53
gavofyork pushed a commit that referenced this pull request Jan 17, 2016
niklasad1 pushed a commit to niklasad1/parity that referenced this pull request Mar 9, 2019
json-spec: fix clique epoch to non-zero u64
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants