Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
db: remove assertion on validity of node_ids read from db.
We've never hit this, we do check them on insert, and it's slowing down some operations unnecessarily. $ time lightning-cli -R --network=regtest --lightning-dir /tmp/ltests-k8jhvtty/test_pay_stress_1/lightning-1/ listpays > /dev/null Before: real 0m1.781s user 0m0.127s sys 0m0.013s After: real 0m1.545s user 0m0.124s sys 0m0.024s Also, the raw listsendpays drops from 0.983s to 0.676s. (With -O3 -flto, listsendpays is 0.416s, listpays 0.971s). Signed-off-by: Rusty Russell <[email protected]>
- Loading branch information