Commit Graph

3467 Commits

Author SHA1 Message Date
2a6876bde2 server: ensure the replay database is stored under the graph+network namespace
In this commit we modify the storage location of the sphinx replay
database to be under the precise network, and not only the graph sub
directory. Before this commit, due to the usage of filepath.Dir(), the
db would lie under /graph/, rather than say, /graph/simnet.
2018-03-10 13:02:29 -08:00
bfa76bad49 Merge pull request #761 from cfromknecht/switch-persistence
Switch Persistence [ALL]: Forwarding Packages + Sphinx Replay Protection + Circuit Persistence
2018-03-09 22:40:02 -08:00
6b74e28858 lnd_test: adds advanced switch persistence test, checking:
//   1. Carol --> Dave --> Alice --> Bob  forward payment
//   2. Carol --- Dave  X  Alice --- Bob  disconnect intermediaries
//   3. Carol --- Dave  X  Alice <-- Bob  settle last hop
//   4. Carol --- Dave  X         X       shutdown Bob, restart Alice
//   5. Carol <-- Dave <-- Alice  X       expect settle to propagate
2018-03-09 21:18:17 -08:00
38b04ec357 lnd_test: adds switch offline delivery outgoing offline itest 2018-03-09 21:18:16 -08:00
4bff32232c lntest/node: adds SetExtraArgs to change node behavior after restart 2018-03-09 21:18:16 -08:00
90dec0ad6a lntest/node: expose pprof port by default for itests 2018-03-09 21:18:16 -08:00
cf0ab41ce8 lnd_test: adds sphinx replay and switch persistence tests 2018-03-09 21:18:16 -08:00
58324e0d38 lnd_test: add wait predicate to retribution balance check 2018-03-09 21:18:16 -08:00
1421a91767 test_utils: init with packager 2018-03-09 21:18:15 -08:00
4f5edc1b2e test_utils: init switch with channeldb 2018-03-09 21:18:15 -08:00
935c757102 rpcserver: allow unsafe-disconects 2018-03-09 21:18:15 -08:00
c976a550cb server: initialize switch with circuit db 2018-03-09 21:18:15 -08:00
972d238f04 peer: remove Switch from channel link config 2018-03-09 21:18:15 -08:00
d468a36d69 peer: pass unsafe-replay to link config 2018-03-09 21:18:15 -08:00
8d0e3dc467 peer: adds FwdPkgGCTicker to channel configs 2018-03-09 21:18:14 -08:00
0e4be6a04a peer: init link with batched sphinx processing 2018-03-09 21:18:14 -08:00
b8254803be config: add unsafe-disconnect and unsafe-replay for testing 2018-03-09 21:18:14 -08:00
5de0c62ae6 breacharbiter_test: init packager 2018-03-09 21:18:14 -08:00
02489dc6c0 htlcswitch/test_utils: instantiate config with batch onoin processing 2018-03-09 21:08:44 -08:00
4f68d1beca htlcswitch/switch_test: change forward() -> send() 2018-03-09 21:08:44 -08:00
1b7afc6da5 htlcswitch/mock: add mock fwding log to initSwitchWithDB 2018-03-09 21:08:44 -08:00
5fd1206da6 htlcswitch/switch: modifies forward method to support async invocation 2018-03-09 21:08:44 -08:00
fbb8f0bcce htlcswitch/sequencer: adds a persistent emitter of payment IDs 2018-03-09 21:08:44 -08:00
e4fb420665 htlcswitch/packet: adds serialization to htlcPacket 2018-03-09 21:08:44 -08:00
3048dfd4be htlcswitch/mock: adds Encode/Decode to mock obfuscator 2018-03-09 21:08:43 -08:00
3ae7772ecb htlcswitch/mailbox_test: adds checks for reset and replay of pkts 2018-03-09 21:08:43 -08:00
9b00f83656 htlcswitch/mailbox: makes pkts replayable via Reset 2018-03-09 21:08:43 -08:00
3a186a02a9 htlcswitch/link_test: generate random preimages 2018-03-09 21:08:43 -08:00
101ad09e9f htlcswitch/link: batches processing of locked in htlcs 2018-03-09 21:08:43 -08:00
2c3d35bb40 htlcswitch/interfaces: have HandleSwitchPacket return an error 2018-03-09 21:08:43 -08:00
403028da78 htlcswitch/circuit_test: use half adds in circuit map test 2018-03-09 21:08:42 -08:00
0b71f74199 htlcswitch/circuit_map: moves circuit map impl to own file 2018-03-09 21:08:42 -08:00
067b261602 htlcswitch/circuit: add half adds to circuit map 2018-03-09 21:08:42 -08:00
7a14b6bb32 Merge pull request #778 from cfromknecht/switch-wallet-api
Switch Persistence [2.5/4]: Establish Switch-Sphinx-Wallet APIs for Switch Persistence
2018-03-09 18:08:31 -08:00
5539e23b05 lnwallet/channel_test: convert tests to new channel API for persistence 2018-03-09 17:35:54 -08:00
aeecb9cdf5 breacharbiter_test: utilize update channel state transition APIs 2018-03-09 17:35:54 -08:00
02c65db0d1 htlcswitch/link_test: integrate new channel update APIs 2018-03-09 17:35:54 -08:00
1fe7c6d431 htlcswitch/link: integrate persistence changes to lnwallet APIs 2018-03-09 17:35:53 -08:00
d420266911 lnwallet/channel: expose API changes to channel state transitions 2018-03-09 17:35:53 -08:00
7bad5458d7 Merge pull request #777 from cfromknecht/fwdpkg-staging
Switch Persistence [2/4] Infra for Forwarding Packages
2018-03-09 16:15:46 -08:00
759d2c9134 Merge pull request #665 from wilmerpaulino/close-all-channels
cmd/lncli: add closeallchannels command
2018-03-09 15:52:21 -08:00
6a88ff940a htlcswitch_/test_utils: init OpenChannels w/ Packager 2018-03-09 14:45:31 -08:00
970006ff2a breacharbiter_test: init open channels with Pacakager 2018-03-09 14:45:30 -08:00
6e542d5dfa lnwallet/channel_test: init open channels with Packager 2018-03-09 14:45:30 -08:00
53e4422a2e lnwallet/channel: integrate fwdpkgs w/ in-mem buffering 2018-03-09 14:45:30 -08:00
7a93c7530c channeldb/invoices: add idempotency to SettleInvoice 2018-03-09 14:45:30 -08:00
e4d2958f68 channeldb/channel_test: init with Pacakager and construct FwdPkgs 2018-03-09 14:45:30 -08:00
2df9fb5510 channeldb/channel: adds fwding package to channeldb 2018-03-09 14:45:30 -08:00
d18c317220 channeldb/forwarding_package_test: test PkgFilter 2018-03-09 14:45:29 -08:00
41c40a9560 channeldb/forwarding_package: initial fwdpkg 2018-03-09 14:45:29 -08:00