interledgerjs / ilp-plugin-xrp-asym-client

Client to Asymmetric XRP Paychan
4 stars 3 forks source link

Feat: reload channel details after fund #29

Closed sharafian closed 6 years ago

sharafian commented 6 years ago

In the current version of asym-client, your outgoing channel details aren't reloaded after you add funds to your outgoing channel. That means once the fund transaction has completed, another one will be immediately triggered.

This fix causes the outgoing channel details to be reloaded after a fund transaction occurs. Funding is not allowed to happen until the details are reloaded, even if the reload needs to be tried many times.

codecov-io commented 6 years ago

Codecov Report

Merging #29 into master will increase coverage by 4.05%. The diff coverage is 100%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master      #29      +/-   ##
==========================================
+ Coverage   44.91%   48.97%   +4.05%     
==========================================
  Files           1        1              
  Lines         236      243       +7     
==========================================
+ Hits          106      119      +13     
+ Misses        130      124       -6
Impacted Files Coverage Δ
index.js 48.97% <100%> (+4.05%) :arrow_up:

Continue to review full report at Codecov.

Legend - Click here to learn more Δ = absolute <relative> (impact), ø = not affected, ? = missing data Powered by Codecov. Last update fc543a1...0850336. Read the comment docs.