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

Fixed reading chunked EIP8 handshake #1712

Merged
merged 2 commits into from
Jul 26, 2016
Merged

Fixed reading chunked EIP8 handshake #1712

merged 2 commits into from
Jul 26, 2016

Conversation

arkpar
Copy link
Collaborator

@arkpar arkpar commented Jul 25, 2016

Closes #1633

@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jul 25, 2016
@arkpar arkpar added A0-pleasereview 🤓 Pull request needs code review. and removed A3-inprogress ⏳ Pull request is in progress. No review needed at this stage. labels Jul 25, 2016
@coveralls
Copy link

coveralls commented Jul 25, 2016

Coverage Status

Coverage increased (+0.005%) to 76.022% when pulling e160a00 on eip8-chunk into d0e79be on master.

HandshakeState::StartSession => {
},
}
if self.state == HandshakeState::StartSession {
Copy link
Contributor

Choose a reason for hiding this comment

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

why moved outside the match?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

connection.readable() Is called in a loop now. There is no need to call it once we've entered StartSession state

Copy link
Contributor

Choose a reason for hiding this comment

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

yes but why not place io.clear_timer(self.connection.token).ok(); in the braces of HandshakeState::StartSession => {},?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

Added missing break that saves the readable call

@gavofyork gavofyork added A8-looksgood 🦄 Pull request is reviewed well. and removed A0-pleasereview 🤓 Pull request needs code review. labels Jul 25, 2016
@coveralls
Copy link

coveralls commented Jul 26, 2016

Coverage Status

Coverage increased (+11.1%) to 87.147% when pulling fce399f on eip8-chunk into d0e79be on master.

@gavofyork gavofyork merged commit 53a975d into master Jul 26, 2016
@gavofyork gavofyork deleted the eip8-chunk branch July 26, 2016 14:04
arkpar added a commit that referenced this pull request Jul 27, 2016
* Fixed reading chunked EIP8 handshake

* Added missing break
gavofyork pushed a commit that referenced this pull request Jul 30, 2016
* Don't try to sync to ancient blocks

* Parallel block body download

* Fixed reading chunked EIP8 handshake (#1712)

* Fixed reading chunked EIP8 handshake

* Added missing break

* Disconnect peers on a fork

* Updated json-ipc-server

* Combine mining queue and enabled into single locked datum (#1749)

* Combine mining queue and enabled into single locked datum

Additional tracing.

* Fix bug uncovered by test.

* Fix typo

* Remove unneeded log initialisation in test.

* fix failing test (#1756)

* Fixed test

* Suicides tracing (#1688)

* tracing suicide

* fixed #1635

* fixed typo

* Stackoverflow #1686 (#1698)

* flat trace serialization

* tracing finds transaction which creates contract

* flatten traces before inserting them to the db

* Trace other types of calls (#1727)

* Trace through DELEGATECALL and CALLCODE

Add them to the JSON output and RLP database store.

* Fix tests.

* Fix all tests.

* Fix one more test.

* filtering transactions toAddress includes contract creation (#1697)

* tracing finds transaction which creates contract

* comma cleanup

Remove when following `}`s, add to final entries.

* Various improvements to tracing & diagnostics. (#1707)

* Various improvements to tracing & diagnostics.

- Manage possibility of `Account` not having code for `PodAccount`
- New RPC: `trace_sendRawTransaction`
- See raw transaction dump when inspecting over RPC

* Fix test

* Remove one of the dupe error messages

* Remove unneeded `&`s

* Reformat and extremely minor optimisation

* Minor optimisation

* Remove unneeded let

* Fix tests.

* Additional fix.

* Minor rename.

* Bowing to the pressure.

* Stackoverflow fix (#1742)

* executive tracer builds flat traces without intermediate struct

* temporarilt commented out tests for traces

* fixed new way of building trace address

* fixed new way of building trace address

* updating state tests with flat tracing in progress

* fixed flat tracing tests

* fixed compiling ethcore-rpc with new flat traces

* removed warnings from ethcore module

* remove unused data structures
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.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants