Ignotus Peverell
|
2d81abc16c
|
Added height as part of handshake to inform syncing.
|
2017-02-02 15:51:48 -08:00 |
|
Ignotus Peverell
|
572c1951e1
|
Introduced a higher-level connection abstraction, allowing the protocol to stay relatively simple. Deals with the lower level details of sending, receiving data, timeouts and dealing with futures.
|
2017-01-29 22:43:20 -08:00 |
|
greole
|
dab3727159
|
minor typo fix (#32)
|
2017-01-27 19:17:28 -08:00 |
|
Ignotus Peverell
|
fc2697e7d8
|
When the cuckoo size is reduced for tests, pow needs to be recomputed for the genesis block.
|
2017-01-23 14:34:02 -08:00 |
|
Ignotus Peverell
|
dda223f25b
|
Chain logic to support multiple forks, select the most worked fork as the head. Significantly simplified from the original direction as it doesn't seem that explicitly materializing forks is necessary. Simple total difficulty accounting in block headers helping a lot there.
|
2017-01-09 15:16:44 -08:00 |
|
Ignotus Peverell
|
ce23dda6cb
|
Block headers maintain total difficulty up to previous. Changed all references of target to difficulty to stay consistent. Ported retargeting algo to use difficulty as well.
|
2016-12-26 15:39:31 -08:00 |
|
Ignotus Peverell
|
0cc786a1e5
|
Refactored server to share the same struct whether futures are exposed or not. Multi-server test now properly waits for a block instead of a timer.
|
2016-12-23 12:15:36 -08:00 |
|
Ignotus Peverell
|
f067e18644
|
Adapters between the chain and the network for block broadcast. First working test that spins up 5 servers, connects them all together, mine a block on one and watch it getting added to all the other servers chains. Some improvements still needed to automate the test properly.
|
2016-12-20 17:39:02 -08:00 |
|
Ignotus Peverell
|
17104977de
|
Several bug fixes to the miner loop. Now builds the block properly and updates the shared head state.
|
2016-12-20 17:36:48 -08:00 |
|
Ignotus Peverell
|
e688ff99e6
|
Started putting in place the adapter between the chain and p2p modules to forward blocks and transactions. Cleaned up chain store references.
|
2016-12-18 15:51:54 -08:00 |
|
Ignotus Peverell
|
d395b3d128
|
Added another server implementation for when the client needs to stay in control of the event loop (i.e. multiple servers for tests). Test to spin up 5 servers and connect them all together.
|
2016-12-14 16:10:39 -08:00 |
|
Ignotus Peverell
|
8a255c0218
|
Formatting.
|
2016-12-13 19:21:49 -08:00 |
|
Ignotus Peverell
|
0c52665f17
|
Server abstraction aggregating underlying modules (p2p, chain, etc.). Beginning of a test to start multiple servers, connect them and mine.
|
2016-11-29 18:51:36 -08:00 |
|
Ignotus Peverell
|
3aeacf647b
|
Module grin is better as a lib to be testable. Will introduce a slim binary module later.
|
2016-11-29 18:41:00 -08:00 |
|
Ignotus Peverell
|
5a82acd199
|
fmt
|
2016-11-27 13:14:41 -08:00 |
|
Ignotus Peverell
|
9795d9e452
|
Miner facility, using the current chain state to build on top of.
|
2016-11-27 12:31:15 -08:00 |
|
Merope Riddle
|
9644fb6a73
|
Add apache 2.0 license header to all source files
|
2016-10-23 13:20:39 +00:00 |
|
Ignotus Peverell
|
f73a308bf3
|
Initial import.
|
2016-10-20 20:06:12 -04:00 |
|