lnd/watchtower/wtdb
Elle Mouton e150bb83d1
watchtower/wtdb: check tower exists on session create
Before creating a new session, first check that the TowerID that the
ClientSession is referencing refers to an existing tower. This is done
to prevent the situation where RemoveTower is called right before
CreateClientSession is called which would, before this commit, lead to
the session being created with a tower ID that does not refer to any
existing tower.
2022-10-13 11:30:26 +02:00
..
client_chan_summary.go watchtower/wtdb: add ClientDB 2019-05-24 18:24:41 -07:00
client_db.go watchtower/wtdb: check tower exists on session create 2022-10-13 11:30:26 +02:00
client_db_test.go watchtower/wtdb: check tower exists on session create 2022-10-13 11:30:26 +02:00
client_session.go watchtower: use ECDH interface for watchtower session 2020-05-20 09:06:57 +02:00
codec.go chainfee: create new chainfee package extracting fees from lnwallet 2019-10-31 16:41:57 -07:00
codec_test.go watchtower/wtdb: update tests to use require package 2022-10-13 11:30:26 +02:00
db_common.go multi: make watchtower client/server DBs remote compatible 2021-08-04 14:55:53 +02:00
log.go multi: remove dead code 2019-09-10 17:21:59 +02:00
session_id.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
session_info.go multi: Fix typos [skip ci] 2022-01-24 12:19:02 +02:00
session_state_update.go watchtower/multi: move BreachHint to blob pkg 2019-06-13 17:40:04 -07:00
tower.go multi: use btcd's btcec/v2 and btcutil modules 2022-03-09 19:02:37 +01:00
tower_db.go multi: make watchtower client/server DBs remote compatible 2021-08-04 14:55:53 +02:00
tower_db_test.go watchtower/wtdb: update tests to use require package 2022-10-13 11:30:26 +02:00
version.go kvdb: move channeldb/kvdb to top level 2021-05-07 14:18:56 +02:00