15 Commits

Author SHA1 Message Date
Jun Jiang
e5afab104a Fix compiling error on windows (#410)
* Fix compiling error on windows

* Fix JsonFileDatastore tests

* Update tempfile cargo, Refactor JsonFileDatastore tests
2018-08-14 11:31:05 +02:00
Pierre Krieger
9480295bf2
Add licenses to all Cargo.toml files (#349) 2018-07-21 12:15:42 +02:00
Pierre Krieger
0f0ae368b8
Create the parent directory of a JSON datastore (#270) 2018-06-22 17:36:30 +02:00
Pierre Krieger
f787f3d8b8
Swarm rework (#182)
* Rename Transport::RawConn to Output

* Remove AsyncRead + AsyncWrite bound on Transport::Output

* UpgradedNode now always implements Transport

* Add and tweak modifiers for Transport and ConnectionUpgrade

* Secio upgrade now returns the pubkey in its output

* Add upgrade::apply

* Add Transport::and_then

* Rework the swarm

* Rustfmt

* Fix concerns
2018-05-14 15:55:16 +02:00
Pierre Krieger
89f95f7136 Implement first draft of floodsub (#144)
* Implement ConnectionReuse correctly

* Add some tests and fixes

* Remove useless boolean in active_connections

* Correctly run tests

* Optimize the processing

* Next incoming is now in two steps

* Remove log

* Fix dialing a node even if we already have a connection

* Add a proper PeerId to Peerstore

* Turn identify into a transport layer

* Expose the dialed multiaddress

* Add identified nodes to the peerstore

* Allow configuring the TTL of the addresses

* Split identify in two modules

* Some comments and tweaks

* Run rustfmt

* Add test and bugfix

* Fix wrong address reported when dialing

* Switch to futures-mutex of paritytech (#113)

* Remove public key system from peerstore (#118)

* Remove public key system from peerstore

* Add comment about PartialOrd on PeerInfo

* Add a nat_traversal() method to Transport (#110)

* Add a nat_traversal() method to Transport

* Fix compilation

* Implement floodsub

* Work on a floodsub example

* Finish example

* More work

* More work

* More work

* More work

* More work

* Rustfmt

* Some style improvements

* Store the whole Topic instead of just the hash

* Add a bunch of TODOs

* Fix introduced warning

* Fix style

* Fix concerns

* Only store the hash of the values in the received messages

* Fix style

* Improve comments
2018-03-15 11:58:11 +01:00
Jef
5217e29fab
Add rustfmt to travis (#137)
* RFC styling-based `rustfmt.toml`

* Add rustfmt to travis

* Remove rustfmt.toml and actually fix too-long lines instead of ignoring them
2018-03-07 16:20:55 +01:00
Pierre Krieger
f4ba9ddb6d Fix concerns 2017-12-07 12:34:12 +01:00
Pierre Krieger
4fa9146489 Add documentation and README for datastore 2017-12-07 11:31:22 +01:00
Pierre Krieger
aeceb04d50 General cleanup and rework 2017-11-20 10:30:35 +01:00
Pierre Krieger
6c39bb5f42 Run rustfmt on the code 2017-11-15 17:27:57 +01:00
Pierre Krieger
b82f56ac3e Allow datastore to store values of arbitrary type 2017-11-15 17:27:22 +01:00
Pierre Krieger
6a2d061374 Add license to code and some documentation 2017-11-09 16:45:28 +01:00
Pierre Krieger
49823fc985 Simplify flush() 2017-11-09 16:41:52 +01:00
Pierre Krieger
03e75f509a Fix concerns 2017-11-09 16:41:52 +01:00
Pierre Krieger
1420e03c6e Initial implementation of datastore 2017-11-09 16:41:52 +01:00