mirror of
https://github.com/bitromortac/lndmanage.git
synced 2026-08-13 12:33:37 +02:00
data_types: move shortchanid and nodeid
This commit is contained in:
parent
b2f9df0ce7
commit
cbce73a67d
2 changed files with 11 additions and 8 deletions
|
|
@ -59,3 +59,11 @@ class NodePair(tuple):
|
|||
seq = (keys[1], keys[0])
|
||||
|
||||
return super().__new__(cls, seq)
|
||||
|
||||
|
||||
class NodeID(str):
|
||||
pass
|
||||
|
||||
|
||||
class ShortChannelID(int):
|
||||
pass
|
||||
|
|
|
|||
|
|
@ -5,6 +5,9 @@ from typing import Set, Dict
|
|||
from math import inf, log
|
||||
|
||||
import logging
|
||||
|
||||
from lib.data_types import NodeID, ShortChannelID
|
||||
|
||||
logger = logging.getLogger(__name__)
|
||||
logger.addHandler(logging.NullHandler())
|
||||
|
||||
|
|
@ -17,14 +20,6 @@ TIME_PENALTY_RATE = 0.000_010 # the default penalty for reaction time
|
|||
TIME_NODE_IS_SLOW_SEC = 5 # the time a node is viewed as slow
|
||||
|
||||
|
||||
class ShortChannelID(int):
|
||||
pass
|
||||
|
||||
|
||||
class NodeID(str):
|
||||
pass
|
||||
|
||||
|
||||
class LiquidityHint:
|
||||
"""Encodes the amounts that can and cannot be sent over the direction of a
|
||||
channel and whether the channel is blacklisted.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue