OracleChannel Class
- class OracleChannel.OracleChannel(channel: Channel.Channel, actual_liquidity: Optional[int] = None)
Bases:
Channel.Channel
An OracleChannel us used in experiments and Simulations to form the (Oracle)LightningNetwork.
It contains a ground truth about the Liquidity of a channel
- property actual_liquidity
Tells us the actual liquidity according to the oracle.
This is useful for experiments but must of course not be used in routing and is also not available if mainnet remote channels are being used.
- can_forward(amt: int)
check if the oracle channel can forward a certain amount
- property in_flight
Tells us the actual liquidity according to the oracle.
This is useful for experiments but must of course not be used in routing and is also not available if mainnet remote channels are being used.