Skip to content

getbalance assertion after closechannel eth #2028

@raladev

Description

@raladev

Background

Today I tried to withdraw funds from eth channel to connext wallet and after withdrawing my getbalance call started to return assertion error. I checked xud and connext logs, xud was contain only assertion and i found nothing interesting in connext logs.

After that I removed and initialized new env again to reproduce the assertion appearing again to get reliable steps, but i was not able to get it again, so it is something floating. :(

Xud logs:

Screenshot from 2020-12-08 00-37-36

Utils output:

simnet > getbalance

Balance:
┌──────────┬───────────────┬───────────────────────────────┬────────────────────────────┐
│ Currency │ Total Balance │ Wallet Balance (Not Tradable) │ Channel Balance (Tradable) │
├──────────┼───────────────┼───────────────────────────────┼────────────────────────────┤
│ BTC      │ 2.5           │ 0                             │ 2.5                        │
├──────────┼───────────────┼───────────────────────────────┼────────────────────────────┤
│ DAI      │ 0             │ 0                             │ 0                          │
├──────────┼───────────────┼───────────────────────────────┼────────────────────────────┤
│ ETH      │ 15            │ 0                             │ 15                         │
├──────────┼───────────────┼───────────────────────────────┼────────────────────────────┤
│ LTC      │ 5             │ 0                             │ 5                          │
├──────────┼───────────────┼───────────────────────────────┼────────────────────────────┤
│ USDT     │ 0             │ 0                             │ 0                          │
└──────────┴───────────────┴───────────────────────────────┴────────────────────────────┘
simnet > tradinglimits

Trading Limits:
┌──────────┬───────────┬──────────┬──────────────┬───────────────┐
│ Currency │ Max Buy   │ Max Sell │ Reserved Buy │ Reserved Sell │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ BTC      │ 2.4499095 │ 2.45     │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ DAI      │ 0         │ 0        │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ ETH      │ 6.3       │ 15       │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ LTC      │ 4.899638  │ 4.9      │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ USDT     │ 0         │ 0        │ 0            │ 0             │
└──────────┴───────────┴──────────┴──────────────┴───────────────┘
simnet > walletdeposit eth
{
  "address": "0x67e4E645f940e76d5eb60D82eA62F0Ee8809E568"
}
simnet > closechannel ETH --amount 2 --destination 0x67e4E645f940e76d5eb60D82eA62F0Ee8809E568
{
  "transactionIdsList": [
    "0x8ca794cee6d1c6a8f167168330d712fbd3986941e7050e827ad5e26cd3307237"
  ]
}
simnet > getbalance

Balance:
┌──────────┬───────────────┬───────────────────────────────┬────────────────────────────┐
│ Currency │ Total Balance │ Wallet Balance (Not Tradable) │ Channel Balance (Tradable) │
├──────────┼───────────────┼───────────────────────────────┼────────────────────────────┤
│ BTC      │ 2.5           │ 0                             │ 2.5                        │
├──────────┼───────────────┼───────────────────────────────┼────────────────────────────┤
│ DAI      │ 0             │ 0                             │ 0                          │
├──────────┼───────────────┼───────────────────────────────┼────────────────────────────┤
│ ETH      │ 13            │ 0                             │ 13                         │
├──────────┼───────────────┼───────────────────────────────┼────────────────────────────┤
│ LTC      │ 5             │ 0                             │ 5                          │
├──────────┼───────────────┼───────────────────────────────┼────────────────────────────┤
│ USDT     │ 0             │ 0                             │ 0                          │
└──────────┴───────────────┴───────────────────────────────┴────────────────────────────┘
simnet > tradinglimits

Trading Limits:
┌──────────┬───────────┬──────────┬──────────────┬───────────────┐
│ Currency │ Max Buy   │ Max Sell │ Reserved Buy │ Reserved Sell │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ BTC      │ 2.4499095 │ 2.45     │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ DAI      │ 0         │ 0        │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ ETH      │ 6.3       │ 13       │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ LTC      │ 4.899638  │ 4.9      │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ USDT     │ 0         │ 0        │ 0            │ 0             │
└──────────┴───────────┴──────────┴──────────────┴───────────────┘
simnet > getbalance
Error: 13 INTERNAL: Assertion failed
simnet > getbalance
Error: 13 INTERNAL: Assertion failed
simnet > getbalance
Error: 13 INTERNAL: Assertion failed
simnet > getbalance
Error: 13 INTERNAL: Assertion failed
simnet > getbalance
Error: 13 INTERNAL: Assertion failed
simnet > loglevel trace
success
simnet > getbalance
Error: 13 INTERNAL: Assertion failed
simnet > getbalance
Error: 13 INTERNAL: Assertion failed
simnet > getbalance
Error: 13 INTERNAL: Assertion failed
simnet > tradinglimits

Trading Limits:
┌──────────┬───────────┬──────────┬──────────────┬───────────────┐
│ Currency │ Max Buy   │ Max Sell │ Reserved Buy │ Reserved Sell │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ BTC      │ 2.4499095 │ 2.45     │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ DAI      │ 0         │ 0        │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ ETH      │ 6.3       │ 13       │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ LTC      │ 4.899638  │ 4.9      │ 0            │ 0             │
├──────────┼───────────┼──────────┼──────────────┼───────────────┤
│ USDT     │ 0         │ 0        │ 0            │ 0             │
└──────────┴───────────┴──────────┴──────────────┴───────────────┘
simnet > exit

Metadata

Metadata

Assignees

No one assigned

    Labels

    P2mid prioritybugSomething isn't workingconnext

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions