Skip to content

Conversation

@mplsgrant
Copy link
Collaborator

@mplsgrant mplsgrant commented May 9, 2024

Issue

I can not run ariard's replacement cycling test in Warnet.

Cause

A number of the test framework components available in Bitcoin Core have not been ported into Warnet.

Solution

  • Add the replacement cycling test as a scenario.
  • Modify our copy of the testing framework to mirror Bitcoin Core's test framework functionality.

Limitations

There is a conflict with the ln cli test.

Wins

The test runs without meaningful augmentation. This is great because it points us in a direction of copy/pasting tests that run today in Core's functional test framework. We can then augment the tests to work in realistic environments with lightning nodes and other future tank types.

✨ New Wins

  • Got connect_nodes working.
  • Added anticycling from instagibbs
  • Added sequence zmq functionality
  • Created log narrative for cycling vs anticycling

Future work

  • Fix ln cli conflict
  • "Bubble up" changes in the test framework class to the warnet test framework class
  • Expand sync_all logic to account for tank state
  • Align zmq ports (also in Dockerfile)
  • Break out this PR into its independent parts for review

@mplsgrant mplsgrant force-pushed the 2024-05-rep-cycle branch 2 times, most recently from 30bbf78 to eb46054 Compare May 16, 2024 06:39
@josibake
Copy link
Collaborator

Concept ACK - assuming you'll move this out of draft when it's "ready for review?"

@mplsgrant mplsgrant force-pushed the 2024-05-rep-cycle branch from 23f1912 to 4ef957d Compare May 16, 2024 13:42
@mplsgrant mplsgrant marked this pull request as ready for review May 16, 2024 13:42
@willcl-ark
Copy link
Contributor

This requests issue is very annoying 😢

@mplsgrant mplsgrant force-pushed the 2024-05-rep-cycle branch from 080b006 to 18391fd Compare May 23, 2024 15:56
@willcl-ark
Copy link
Contributor

This requests issue is very annoying 😢

You can try rebasing on main now

@mplsgrant mplsgrant force-pushed the 2024-05-rep-cycle branch 3 times, most recently from e6226cf to 4bf5137 Compare May 24, 2024 03:42
mplsgrant added 5 commits May 24, 2024 10:27
Add ariard's replacement cycling test nearly verbatim:update its base class to warnet, and add a
call to `generatetoaddress` because test framework assumes a kick-started chain by default.
This ensures sufficient funds for fees. The ln_init.py process will fail due to insufficient funds
if the number of coins it generates is evenly divisible relative to the number of recipients.
@mplsgrant mplsgrant force-pushed the 2024-05-rep-cycle branch from 4bf5137 to c3820c3 Compare May 24, 2024 15:47
@mplsgrant
Copy link
Collaborator Author

I'm closing this in favor of the broken-out PRs:

#370
#371
#372
#373

@mplsgrant mplsgrant closed this May 27, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants