dtr-org / unit-e

A digital currency for a new era of decentralized trust
https://unit-e.io
MIT License
45 stars 15 forks source link

Add getrawsnapshot RPC #880

Closed kostyantyn closed 5 years ago

kostyantyn commented 5 years ago

In functional tests we use p2p interface to retrieve the snapshot before broadcasting to other nodes. It works fine but now we want to extend tests and broadcast the valid snapshot but which is not part of the finalized epoch. The issue is that from p2p we can't receive the non-finalized snapshot to simulate this scenario and it's needed in the https://github.com/dtr-org/unit-e/pull/852

Having an RPC command to retrieve any available snapshot will help us to test the sync after we introduced commits

Signed-off-by: Kostiantyn Stepaniuk kostia@thirdhash.com