-
Notifications
You must be signed in to change notification settings - Fork 131
[bug]: trouble inceasing the size of asset channels in itest #1432
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[bug]: trouble inceasing the size of asset channels in itest #1432
Comments
If you're increasing the amount of asset needed to fund a channel, then you also need to ensure that each node has enough asset in its wallet. This is a low level test framework, if the framework makes assumptions about how many assets each node should have, then it may reduce our ability to test certain scenarios. |
So you are saying that it is not adjustable by design? |
The tests are currently set up in quite a rigid way. We definitely need to improve the test code to make it more flexible. There will be a big refactor coming soon. |
This fixes lightninglabs/taproot-assets#1432 by defining the on chain asset amounts sent to each node and the sizes of channels opened by each node relative to each other without hard coding the values. This then allows the channel sizes to be adjusted more easily as needed.
This issue was different than the random one I encountered in https://github.com/lightninglabs/tapdvalidation . |
The fix in lightninglabs/lightning-terminal#1015 makes it smart enough to send the right amount of assets to each node before trying to open up channels. |
No, see this fragment:
The funding amounts are hard coded, if you increase the channel size then you also need to modify that value. |
Yes, they were hard coded in a confusing/weird way, so in lightninglabs/lightning-terminal#1015 I've changed it so that they are no longer hard coded, but relative toe each other. |
If in
litd_custom_channels_test.go
I make the following changeand then run
I get the error
I think maybe the proper amount of coins isn't be distributed to the nodes before trying to open channels or maybe it is just not waiting for transactions to propagate to the mempool and confirm before attempting to proceed, but I'm not sure how itest sets up its test network. It should be smart enough to make sure each node has the right amount of assets before trying to open up channels though.
I've randomly get this issue in https://github.com/lightninglabs/tapdvalidation when I do have enough coins in the wallet of each node (I know this because it is random and works 90% of the time), but now I've been able to make it reproducible in the itest framework. I'm not sure if it is the same problem or a different one with the same error message, but it would be good to fix it in itest since it is at least a reproducible error there.
The text was updated successfully, but these errors were encountered: