From b8254803be026795c402bbf82ad4cf66a750c747 Mon Sep 17 00:00:00 2001 From: Conner Fromknecht Date: Thu, 22 Feb 2018 12:55:17 -0800 Subject: [PATCH] config: add unsafe-disconnect and unsafe-replay for testing --- config.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/config.go b/config.go index c890c5517..4403ef620 100644 --- a/config.go +++ b/config.go @@ -170,6 +170,8 @@ type config struct { DebugHTLC bool `long:"debughtlc" description:"Activate the debug htlc mode. With the debug HTLC mode, all payments sent use a pre-determined R-Hash. Additionally, all HTLCs sent to a node with the debug HTLC R-Hash are immediately settled in the next available state transition."` HodlHTLC bool `long:"hodlhtlc" description:"Activate the hodl HTLC mode. With hodl HTLC mode, all incoming HTLCs will be accepted by the receiving node, but no attempt will be made to settle the payment with the sender."` + UnsafeDisconnect bool `long:"unsafe-disconnect" description:"Allows the rpcserver to intentionally disconnect from peers with open channels. USED FOR TESTING ONLY."` + UnsafeReplay bool `long:"unsafe-replay" description:"Causes a link to replay the adds on its commitment txn after starting up, this enables testing of the sphinx replay logic."` MaxPendingChannels int `long:"maxpendingchannels" description:"The maximum number of incoming pending channels permitted per peer."` Bitcoin *chainConfig `group:"Bitcoin" namespace:"bitcoin"`