Add filesystem polling to nodes (#1623)

Add the logic in node to poll for new serialized nodes to appear on disk.

Newly discovered nodes are automatically added to the PersistentNetworkMapCache
This commit is contained in:
Alberto Arri
2017-10-05 14:11:10 +01:00
committed by GitHub
parent 257756d862
commit cf83328d5d
7 changed files with 271 additions and 159 deletions

View File

@ -11,7 +11,8 @@ UNRELEASED
* Cordform may not specify a value for ``NetworkMap``, when that happens, during the task execution the following happens:
1. Each node is started and its signed serialized NodeInfo is written to disk in the node base directory.
2. Every serialized ``NodeInfo`` above is copied in every other node "additional-node-info" folder under the NodeInfo folder.
* Nodes read all the nodes stored in ``additional-node-info`` when the ``NetworkMapService`` starts up.
* Nodes read and poll the filesystem for serialized ``NodeInfo`` in the ``additional-node-info`` directory.
* ``Cordapp`` now has a name field for identifying CorDapps and all CorDapp names are printed to console at startup.