1e5ff0eeff
Integration of target calculation with header validation and pow. Enforce strictly progessing time.
Ignotus Peverell
2016-11-16 17:03:23 -08:00
ca26f0c3f7
Block header needs its own deserialization. Fixed pow verify to use the block target.
Ignotus Peverell
2016-11-16 14:08:46 -08:00
1d2b23a4a5
Several simple fixes to reflect changes from core (Result instead of Option for errors, consensus module, etc.)
Ignotus Peverell
2016-11-15 17:29:42 -08:00
3c5e2b2958
Block now uses the new Target type. Consensus next_target calculation adjusting every block based on deviation and increasing Cuckoo size gradually. Block time of a minute until we learn more from mining ecosystem, so enough PoW attempts can be made even on CPUs.
Ignotus Peverell
2016-11-15 14:37:49 -08:00
44545525f4
Target addition and subtraction. A little more doc.
Ignotus Peverell
2016-11-15 12:44:19 -08:00
151a0150b9
Fix a small typo in documentation
Roman Zeyde
2016-11-14 21:21:18 +02:00
f7b31dc5f3
Bitcoin-style target implementation. Large 32 byte number that can be compared and serializes truncated.
Ignotus Peverell
2016-11-13 21:00:02 -08:00
8317854b70
Slight changes to transaction signature. The transaction fee gets signed (instead of the empty string) and the fee amount is attached to the transaction proof in blocks. This allows fee accounting and the tracking of fees within a block.
Ignotus Peverell
2016-11-09 11:05:44 -08:00
2e23c64448
Intro to pruning doc, just some facts and size data.
Ignotus Peverell
2016-11-08 09:50:13 -08:00
632e3af8ee
Test for sending tx from one peer to another. Common tests module.
Ignotus Peverell
2016-11-07 14:02:27 -08:00
7b3095ac12
Add design document for Merkle tree structures
Merope Riddle
2016-11-05 20:30:40 +00:00
ea425dc614
Protocol cleanup. Tests cleanup. Additional test for transaction broadcast.
Ignotus Peverell
2016-11-05 16:31:45 -07:00
28f007240e
Usefuly read and write implementations to limit and count bytes.
Ignotus Peverell
2016-11-04 08:59:49 -07:00
098d17ee42
Added limited and counting readers for protocol to maintain its stats. Added primitive error count. Cleaned up protocol.
Ignotus Peverell
2016-11-02 14:19:40 -07:00
edc6c62577
Fixed message serialization following changes in core. Sending of block and transaction.
Ignotus Peverell
2016-11-01 10:42:33 -07:00
ee6fcab8db
Proper server and protocol event loop. Channels for shutdown and ping/pong trivial roundtrip. Working test.
Ignotus Peverell
2016-10-30 18:23:52 -07:00
a23308dd9d
Added clean stop logic on server and peers. Broken unit test.
Ignotus Peverell
2016-10-30 08:24:19 -07:00
42769c373c
Re-implemented the whole interaction between server, peer and protocol to be more Rust-ish. Server maintains peer references and protocol is internally mutable.
Ignotus Peverell
2016-10-29 12:36:45 -07:00
4e11aab1ea
added comment to avoid this vulnarability sneaking back
Garrick Ollivander
2016-10-29 18:18:32 +02:00
ab3ffafdcd
fix merkle tree malleability
Garrick Ollivander
2016-10-29 17:55:47 +02:00
fdaf2ba6af
First working test with related fixes demonstrating a full peer handshake.
Ignotus Peverell
2016-10-27 14:28:02 -07:00
a9dc8a05ac
Preliminary impl of p2p package compiles now. Next step: basic handshake integration test.
Ignotus Peverell
2016-10-26 11:21:45 -07:00
b1762cb5f4
p2p module getting close to first integration test allowing 2 peers to connect. Fleshed out handshake and protocol use. Fixed most errors, just need to make the borrow checker happy.
Ignotus Peverell
2016-10-25 22:06:13 -07:00
4657b09c4e
WIP: more p2p code, mostly interaction between peer, protocol and server as well as ser/deser for first message types.
Ignotus Peverell
2016-10-24 21:35:10 -07:00
9f780f6865
Converse of deser macro to make serialization of structs less verbose.
Ignotus Peverell
2016-10-24 20:41:28 -07:00
b50e1ab038
Simple macro to remove some of the verbosity in deserialization.
Ignotus Peverell
2016-10-24 17:43:14 -07:00
c8aa8d7c18
Getting started on the p2p networking code.
Ignotus Peverell
2016-10-23 17:02:02 -04:00
d3e4ecc100
Corrected spelling of Cuckoo Cycle here and there and updated easiness to 50% following @tromp feedback.
Ignotus Peverell
2016-10-21 18:02:20 -04:00
396fd58626
Fixing the gitter link.
Ignotus Peverell
2016-10-21 16:24:42 -04:00