- 15 Jan, 2015 3 commits
-
-
Felix Lange authored
This needs to be supported because []someInterface does occur sometimes. Funny enough, the fix involves changes to the decoder. makeDecoder cannot return an error for non-empty interfaces anymore because the type cache builds both decoder and writer. Do the check at 'runtime' instead.
-
Felix Lange authored
-
Felix Lange authored
I'm reasonably confident that the encoding matches the output of ethutil.Encode for values that it supports. Some of the tests have been adpated from the Ethereum testing repository. There are still TODOs in the code.
-
- 13 Jan, 2015 6 commits
- 12 Jan, 2015 8 commits
-
-
Jeffrey Wilcke authored
JitVm struct stub. Forwards calls to DebugVm.
-
obscuren authored
-
obscuren authored
-
Paweł Bylica authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
- 10 Jan, 2015 1 commit
-
-
obscuren authored
-
- 09 Jan, 2015 22 commits
-
-
obscuren authored
* proper 0xhex * filters fixed * start of filter manager * accounts for ws. Closes #246
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
obscuren authored
-
zelig authored
-
zelig authored
- the spec says response to getBlockHashes(from, max) should return all hashes starting from PARENT of from. This required major changes and results in much hackier code. - Introduced a first round block request after peer introduces with current head, so that hashes can be linked to the head - peerInfo records currentBlockHash, currentBlock, parentHash and headSection - AddBlockHashes checks header section and creates the top node from the peerInfo of the best peer - AddBlock checks peerInfo and updates the block there rather than in a node - request further hashes once a section is created but then no more until the root block is found (so that we know when to stop asking) - in processSection, when root node is checked and receives a block, we need to check if the section has a parent known to blockchain or blockPool - when peers are switched, new peer launches a new requestHeadSection loop or activates its actual head section, i.e., the section for it currentBlockHash - all tests pass
-
zelig authored
-
zelig authored
- AddBlockHashes ignores the first hash (just used to match getBlockHashes query) sends the rest as blocksMsg - new test TestPeerWithKnownParentBlock - new test TestChainConnectingWithParentHash - adapt all other tests to the new scheme
-
zelig authored
-