kklash
63428de6e5
htlcswitch: clean up test resources and temporary files
...
The htlcswitch tests were creating temporary database files
but failing to clean them up.
We fix this by making it obvious when temporary db files are
created, and cleaning up those resources where necessary in
the tests.
2022-10-10 10:32:39 -07:00
Eng Zer Jun
9294b53fcc
htlcswitch: use T.TempDir
to create temporary test directory
...
Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2022-08-24 09:03:01 +08:00
Tommy Volk
9a10c80bcb
multi: move many t.Fatalf calls to require.NoError
2022-06-17 04:26:55 +00:00
eugene
f7b3da4bb2
htlcswitch+lntest: modify Switch to persist resolution messages
...
Include unit tests for the Switch, and integration tests that
exercise the persistence logic.
2022-04-29 16:40:19 -04:00
Olaoluwa Osuntokun
a90dfff9a5
build: update to Go 1.18
2022-04-12 16:14:04 -07:00
Oliver Gugger
7dfe4018ce
multi: use btcd's btcec/v2 and btcutil modules
...
This commit was previously split into the following parts to ease
review:
- 2d746f68: replace imports
- 4008f0fd: use ecdsa.Signature
- 849e33d1: remove btcec.S256()
- b8f6ebbd: use v2 library correctly
- fa80bca9: bump go modules
2022-03-09 19:02:37 +01:00
Andras Banki-Horvath
11cf4216e4
multi: move all channelstate operations to ChannelStateDB
2021-09-29 17:00:03 +02:00
yyforyongyu
995b9a711f
trivial: typo fix
2021-09-23 13:24:15 +08:00
Oliver Gugger
ee74e4ba86
server+mod: use ECDH interface for sphinx router
2020-05-20 09:05:36 +02:00
Andras Banki-Horvath
b93140cd3c
switch: remove unused code
2020-04-24 19:15:08 +02:00
Joost Jager
3d7de2ad39
multi: remove dead code
2019-09-10 17:21:59 +02:00
Joost Jager
e54b24289f
htlcswitch: move hop iterator into htlcswitch/hop package
...
Prepares for onion blob decoding outside of htlcswitch.
2019-09-05 15:30:31 +02:00
Olaoluwa Osuntokun
d8e6085c17
multi: update to go 1.11 gofmt
2018-10-07 14:37:38 +09:00
Conner Fromknecht
78439416c0
htlcswitch/circuit_test: test for relaxed DeleteCircuits
...
Modify unit tests to expect success when removing
already-deleted circuits, as well as test that extra
circuit deletions are ignored.
2018-08-20 16:45:42 -07:00
Conner Fromknecht
b608fca447
htlcswitch/circuit_test: use CircuitKey field names
2018-08-07 16:57:40 -07:00
Conner Fromknecht
1ded697e8d
multi: sort import paths with gofmt
2018-08-02 18:20:49 -07:00
Olaoluwa Osuntokun
6f60f139f4
multi: switch over import paths from roasbeef/* to btcsuite/*
2018-07-13 17:05:39 -07:00
Jim Posen
56e65339e0
multi: Complete upgrade to new sphinx package interface.
2018-05-02 00:22:25 -07:00
Dimitris Tsapakidis
4009f7f874
multi: fix typos in comments
2018-04-17 19:03:27 -07:00
Conner Fromknecht
75c7349823
htlcswitch/circuit_test: use circuit map config and test rextraction
2018-03-13 16:33:28 -07:00
Conner Fromknecht
403028da78
htlcswitch/circuit_test: use half adds in circuit map test
2018-03-09 21:08:42 -08:00
Jim Posen
4a29fbdab2
htlcswitch: Rename htlcPacket fields for clarity.
...
The src/dest terminology for routing packets is kind of confusing
because the source HTLC may not be the source of the packet for
settles/fails traversing the circuit in the opposite direction. This
changes the nomenclature to incoming/outgoing and always references
the HTLCs themselves.
2017-12-14 17:53:58 -08:00
Jim Posen
66e654bb42
htlcswitch: Unit tests for CircuitMap.
2017-12-14 17:53:58 -08:00