vector
vector copied to clipboard
[browser-node] Improve `saveChannelAndTransferStates`
Right now the saveChannelStateAndTransfers method logic is inefficient. We are also deleting data of transfers that are no longer active. The method should be improved to (1) not delete then re-add duplicate transfers and (2) not delete transfers that are no longer active (this will be a problem for people like hypernet)