discovery+server: make waiting proofs persistent

In this commit waiting proofs array have been replaced with persistant
boltd storage which removes the possibility for the half proof to be
lost during half proof exchange.
This commit is contained in:
Andrey Samokhvalov
2017-05-05 20:17:31 +03:00
committed by Olaoluwa Osuntokun
parent a3eee453c3
commit 8e4199ee92
4 changed files with 165 additions and 85 deletions

View File

@@ -254,6 +254,7 @@ func newServer(listenAddrs []string, notifier chainntnfs.ChainNotifier,
SendToPeer: s.sendToPeer,
TrickleDelay: time.Millisecond * 300,
ProofMatureDelta: 0,
DB: chanDB,
})
if err != nil {
return nil, err