You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Refactoring P2P setup code and set up new DB layer framework (#330)
* Added basic event bus system.
* Better sync guarantees for event firing.
* Properly handle events being fired when there's no handlers for them.
* Basic framework of new storage layer and new p2p framework.
* Added "channel state update" event type to HTLC.
* Implemented most of connection setup and workflow and added some hooks into qln code to support it.
* Removed old P2P connection code replacing it with calls to new system.
Hope it all works this time.
* Create new PeerManager when initing a LitNode.
Also rearranged some things in NewLitNode in qln/init.go to make it clearer what's happening.
* Fixed locking problem in eventbus caused by early return.
* Implemented peer database for new BoltDB storage layer.
* Fixed some issues due to Go having silly semantics regarding pointrs and interfaces.
* Implemented a lot of logging messages, fixed some locking problems.
* Fixed not starting message processor when initiating connections after handshake.
* Removed a couple of unnecssary log messages.
* Tweaked some things in the qln event handlers, trying to get it to work.
* Fixed mismatched peer numbering schemes confusing some message handling code.
* Some tweaks to maybe help with debugging?
* Fixed RemotePeer's QCs getting cleared preemptively, causing lots of problems.
* Removed some more peer-related DB code that's now redundant.
* Added new message handlng infrastructure.
* Patched in most of the network message IO code to the new message processor system.
* Added peer disconnect handler. Also removed the OmniIn channel that was already unused.
* Fixed some inconsistencies and other bugs in marshalling between new and old messaging systems.
* Replaced OmniOut with (wrapped) calls to the new messaging system.
* Tried to fix "nil elkrem receiver" problem when breaking.
* Made some changes to lnio in preparation for walletmgr.
* Renamed btcutil/btcec to btcutil/koblitz.
* Moved btcutil/koblitz to crypto/koblitz.
* Moved DB code into new hierarchy and renamed lnio to lncore which is a more accurate name.
* Updated btcec package references to koblitz, as missed in previous commit.
* Added back support for UPnP, NAT, and SOCKS5 proxys outbound.
* Make sure we're gotten rid of lit and lit-af on `make clean`.
* Fixed some naming issues.
* Updated references to "log" to new "logging" package.
Also fixed some references to btcec that were there after the rebase for some reason.
* Fixed some issues with the the argument parsing not working right.
* Fix crash(es) involved in Connect RPC call.
* Updated code for saving nicknames.
* Fixed more nickname stuff in DB code.
* Added some serialization/deserialization tests.
0 commit comments