Releases: ExchangeUnion/xud
v1.2.6
v1.2.5
v1.2.4
v1.2.3
1.2.3 (2020-12-03)
This release includes several fixes, including a regression bug relating to disconnecting offline peers from 1.2.1, as well as a new call & cli command to change the xud master password.
Bug Fixes
- p2p: fix stall timer checks (#2015) (405f50e), closes #1994 #2010
- changes removeorder output to a more meaningful message (#1526) (#1986) (43e7c8e)
- wrong error message on insufficient inbound capacity (#2003) (#2006) (22c474a)
Features
v1.2.2
This release includes a critical bug fix for replace order functionality. In addition, a new rpc call GetMnemonic has been added that can be used to retrieve the master seed mnemonic for xud at runtime after an xud node has been created.
Bug Fixes
Features
v1.2.1
This maintenance release includes a number of features, most significantly it switches xud to use lnd's new sendpaymentv2
call to prepare for multi-channel trades. It also improves xud's shutdown behavior and fixes several bugs.
Bug Fixes
- added swap success log entry (#1649) (e914ec0)
- graceful shutdown (#1994) (cde3203)
- cli: typo in unlock.ts (#1944) (7f61b32)
- lnd: don't calculate negative capacities (b1020c1)
- addpair should prevent adding same base and quote assets (#1559) (69f502f)
- tls certificate check on startup (#1510) (9633678)
- use regtest instead of regnet arg (7c6a226)
- lnd: handling hold invoice check errors (#1969) (5746516), closes #1968
- alias missing in streamorders (#1725) (#1962) (d537206)
- cli: openchannel assertion error for string amount (#1950) (a0cc6d7), closes #1643
- connext: not enough balance for closechannel (#1963) (6599d88)
- p2p: don't reconnect peers when pool closed (#1965) (8483e1e), closes #1668 /github.com/ExchangeUnion/xud/issues/1668#issuecomment-684828808
- rpc: no success if no channels to close (#1689) (#1942) (17e40de)
- getinfo output for lnd channels (#1940) (#1948) (962daa4)
- manual ban causes an undefined log entry (#1779) (e7f8178)
- rename tradinglimits reserved_inbound json_name (7e56011)
Features
- lnd: SendPaymentV2 (51c60dc), closes #1590
- rpc: runtime addcurrency for lnd & connext (#1746) (fc83823)
- swapclient: auto init wallets on xud unlock (#1973) (a1287dd), closes #1929
- reserved capacity checks on PlaceOrder (#1949) (d458745), closes #1947
- lnd: change gRPC client options (aefdce8)
- removeorder output changed to a more meaningful message (#1526) (ba04193)
- rpc: SetLogLevel (#1955) (8d10df0), closes #835
- added new grpc method to easily cancel all orders (#1910) (c958e86)
v1.2.0
1.2.0 (2020-10-16)
This release includes a number of fixes and features, most significantly related to Connext integration.
- Inbound collateral from the Connext node is now dynamically requested upon orders being placed that receive a Connext currency.
- Keep track of inbound and outbound amounts reserved by standing orders in the orderbook, and expose these amounts on the
TradingLimits
call.
Bug Fixes
- cli: switch getbalance table columns (#1931) (49c8c18), closes #1930
- orderbook: don't remove 0 quantity w/ hold (#1921) (5f3793a)
- bold link, mm link (#1873) (54bd9ce)
- checking for invoice support on lnd clients while verifying connection (4c26aff)
- don't activate unsupported pairs with peers (0fe2d66)
- grpc throws error for addpair/withdraw for wrong argument (#1844) (48a0a33)
- handling insufficient balance errors for swap clients (246889b)
- implemented showing all pairs instead of active ones for listpeers (206dad0)
- listorders limit displays first orders instead of last (#1883) (e101e6f)
- propagating currencies and pairs on database if initDB true even DB is filled (17c7cb5)
- propagating nodes on database if initDB true even DB is filled (#1907) (246136e)
- xudrpc GetBalanceResponse json_name (#1909) (26f89e6)
- connext: avoid scientific notation for amount (#1905) (cc1e689)
- connext: display error message for 400 status code (#1911) (b4e1858)
- connext: remove BigInt to avoid precision loss (#1893) (d9ddd1c)
- order invalidation only be sent to peers with active pair (#1530) (#1890) (0dc85bd)
Features
- cli: case insensitive choices (4c01b0e)
- connext: lazy collateralization (#1916) (0f2b841), closes #1896
- connext: request collateral for order amount (75078c0), closes #1845
- logging: order holds on trace level (#1865) (5e3ad04)
- rpc: add txid to open/close channel response (0669a3f), closes #1860
- rpc: expose reserved balance for GetBalance (#1925) (8b18dd7)
- rpc: reserved order amount for TradingLimits (7f7cd68), closes #1584 #1678
- derive child seed for swap clients (be4121f), closes #1576
- connext: reject app install for transfers without status field (#1863) (519aa54)
- connext: unlock expired transfer apps (#1857) (023434d)
- rpc: show connext status on create/restore node (#1902) (82e16a5)
- simnet: add DAI (#1915) (35e85b3)
- sat_per_byte custom fee for openchannel (#1832) (b56ad98), closes #1829
- orderbook: better replace order hold message (b7fa00a)
- orderbook: log error message on remove order (#1901) (788490f)
- p2p: don't log empty order packets (#1871) (1b6d6d6)
- p2p: increase reconnection delay backoff (#1870) (44af197)
- simnet: change USDT contract address (#1912) (0a2bdfd)
- simnet: upgrade simnet USDT contract address (#1906) (7e5f8ef)
v1.1.0
1.1.0 (2020-09-28)
Most notable features of this release:
- Xud now automatically requests inbound liquidity for connext currencies (ETH/ERC20) and prevents orders from entering the orderbook until there is sufficient inbound liquidity to cover the order. This "smart collateralization" feature considerably increases the likelihood that the orders can be executed successfully.
- The DAI token and
USDT/DAI
trading pair have been enabled by default.
Bug Fixes
- bold link, mm link (#1873) (54bd9ce)
- don't activate unsupported pairs with peers (0fe2d66)
- grpc throws error for addpair/withdraw for wrong argument (#1844) (48a0a33)
- handling insufficient balance errors for swap clients (246889b)
- implemented showing all pairs instead of active ones for listpeers (206dad0)
- listorders limit displays first orders instead of last (#1883) (e101e6f)
- order invalidation only be sent to peers with active pair (#1530) (#1890) (0dc85bd)
- propagating nodes on database if initDB true even DB is filled (#1907) (246136e)
- xudrpc GetBalanceResponse json_name (#1909) (26f89e6)
- connext: avoid scientific notation for amount (#1905) (cc1e689)
- connext: display error message for 400 status code (#1911) (b4e1858)
- connext: remove BigInt to avoid precision loss (#1893) (d9ddd1c)
Features
- connext: reject app install for transfers without status field (#1863) (519aa54)
- connext: request collateral for order amount (75078c0), closes #1845
- orderbook: better replace order hold message (b7fa00a)
- rpc: show connext status on create/restore node (#1902) (82e16a5)
- simnet: add DAI (#1915) (35e85b3)
- sat_per_byte custom fee for openchannel (#1832) (b56ad98), closes #1829
- connext: unlock expired transfer apps (#1857) (023434d)
- logging: order holds on trace level (#1865) (5e3ad04)
- orderbook: log error message on remove order (#1901) (788490f)
- p2p: don't log empty order packets (#1871) (1b6d6d6)
- p2p: increase reconnection delay backoff (#1870) (44af197)
- rpc: add txid to open/close channel response (0669a3f), closes #1860
- simnet: change USDT contract address (#1912) (0a2bdfd)
- simnet: upgrade simnet USDT contract address (#1906) (7e5f8ef)
v1.0.1
1.0.1 (2020-09-08)
Features
- connext: reject app install for transfers without status field (#1863) (519aa54)
- connext: unlock expired transfer apps (#1857) (023434d)
- logging: order holds on trace level (#1865) (5e3ad04)
- orderbook: better replace order hold message (b7fa00a)
- p2p: don't log empty order packets (#1871) (1b6d6d6)
- p2p: increase reconnection delay backoff (#1870) (44af197)
v1.0.0
xud 1.0.0 (2020-09-01)
This is the first major release of xud. This release contains several key fixes and features designed to improve stability and the likelihood of successful swaps when trading with peers.
Release Notes
Connext
This version continues expanding support for Connext. Tokens can now be withdrawn from one's Connext balance to an on-chain address. Collateral is automatically requested from the Connext node upon depositing tokens to allow for incoming payments to succeed on the first try.
It also handles and prevents an edge case that could have caused xud to crash if Connext receives an expected incoming transfer twice.
Order Book
The decentralized order book has had some improvements to make it more robust. "Dust" orders - where at least one side of a trade may be for an amount so small that it doesn't meet minimum HTLC sizes - are automatically removed from the order book. Previously, fragments of partially filled or removed orders may have been left over and remained in the order book despite being effectively untradeable.
This version also improves the logic for adding back orders that failed to swap. Orders - or portions thereof - are removed from the order book as they are matched. However, if they are not swapped successfully then xud (unless being run in "strict" mode) will add them back to the order book so that they may be traded again by a future order, perhaps after correcting temporary network or channel management issues that may have caused the first swap attempt to fail. We've fixed this logic to ensure we always add back peer orders that fail a swap. On the other hand, we've also added checks to ensure we don't add back an order that is no longer valid - as may be the case when an order is canceled by a peer while we were attempting to swap it.
Order Replacement
Order replacement has been supported since early pre-release versions of xud and is a handy way to update existing orders in response to changing market conditions. However, on the network layer, order replacements were communicated to peers via two separate packets - one to remove the old order and one to add the new one replacing it. This allowed for the possibility of delays or inconsistency as the two packets may arrive or be processed at different times. This version supports replacing orders in a single packet, with the aim of making order replacement as atomic as possible both locally and on the xud network.
Failed Swap Monitoring
Xud has a Swap Recovery module that was originally designed to recover swaps that were in progress during an unexpected crash, with the goal of ensuring that we claim any payments we are expecting from swaps. Over time this same module was used to monitor swaps that xud would deem as "failed" but where HTLCs were still pending. If an outgoing HTLC was eventually claimed by an unscrupulous peer, xud would claim its corresponding incoming payment.
This version goes back to Swap Recovery handling only swaps that were aborted due to an unexpected crash. Similar logic has been added to monitor pending HTLCs for active swaps separately. Swaps now remain "active" as long as any HTLCs exist, and the corresponding orders held in limbo until these HTLCs reach a final resolution. This ensures that orders cannot be double filled. Peers that we detect to have settled an old HTLC are immediately banned, as this is recognized as intentional malicious behavior that may exploit the free option problem.
Changelog
The full list of changes since the last release are listed below.
Bug Fixes
-
connext: convert contract addresses to eip55 standard (e08d43c)
-
connext: prevent duplicate htlcAccepted evts (#1854) (aa3027a), closes #1851
-
orderbook: add back fully matched orders (1024b72), closes #1816
-
orderbook: prevent stuck replace order holds (#1842) (984e064), closes #1835
-
orderbook: reject all dust peer orders (8a1c816)
-
improve HttpServer error logging (67ddfa4)
-
restrict reputation events in non-strict mode (#1808) (0d20cd3), closes #1802
-
strict command arg (a26d67d)
-
service: replace order id (582a49b)
Code Refactoring
Features
-
connext: mark payment as failed when receiving 404 status (d1f1f2c)
-
connext: request collateral after DEPOSIT_CONFIRMED_EVENT (#1825) (dc6de05)
-
orderbook: automatically remove dust orders (0d8435f), closes #1798 #1785
-
orderbook: don't add back invalidated orders (#1839) (ed43416), closes #1838
-
p2p: replace order in single packet (#1812) (de691b2), closes #1805 #1806
-
rpc: log each call with trace not debug (#1819) (eda2f8d), closes #1817
-
simnet: change USDT contract address (91e73b0)
-
swaps: monitor pending payments before fail (#1822) (1a4ee6e), closes #1799 #1794 #1799 #1794 #1708
-
tests: upgrade connext simtests to 7.3.8 (b067d14)
BREAKING CHANGES
- removes raiden support & p2p packet fields