Skip to content

all: rewrite bfgd and popmd, remove bssd#396

Merged
joshuasing merged 326 commits intomainfrom
toni/bfg-rework
Jul 16, 2025
Merged

all: rewrite bfgd and popmd, remove bssd#396
joshuasing merged 326 commits intomainfrom
toni/bfg-rework

Conversation

@AL-CT
Copy link
Copy Markdown
Contributor

@AL-CT AL-CT commented Feb 5, 2025

Summary
Now that we have arrived at mainnet it is time to pay off the technical debt we incurred. For all the right reasons, bfg became a dumping ground for functionality our users needed. TBC has caught up and implements the primitives that bfg needs so that it can drastically shrink in scope and functionality.

Changes

  • Remove bssd altogether. Having it at the time made sense but that has gone away as the code progressed. PoP payouts have moved to op-geth.
  • Implement keystone tracking in tbc.
  • Implement packages that handle bitcoin wallet functionality.
  • Implement various backends for bitcoin knowledge in bfg.
  • Rewrite pop miner to use new infrastructure.

Screenshot 2025-06-05 at 16 28 07

Screenshot 2025-06-05 at 16 28 17

Screenshot 2025-06-05 at 16 28 22

Screenshot 2025-06-05 at 16 28 30

Screenshot 2025-06-05 at 16 28 36

Screenshot 2025-06-05 at 16 30 23

@github-actions github-actions bot added area: bss This is a change to BSS (Bitcoin Secure Sequencer) area: hemictl This is a change to hemictl area: make This changes a Makefile area: tbc This is a change to TBC (Tiny Bitcoin) area: popm This is a change to popm (PoP Miner) labels Feb 5, 2025
@AL-CT AL-CT added the size: XXL This change is extremely large (+/- 1000+). Changes this large should be split into multiple PRs label Feb 7, 2025
@marcopeereboom marcopeereboom changed the title bfg, bss: reworking BFG to reduce bloat bfg, bss, bfg: make bfg and pop miner work without tracking bitcoin themselves. Feb 21, 2025
@marcopeereboom
Copy link
Copy Markdown
Contributor

@VolodymyrBg check this out

@github-actions github-actions bot added area: bfg This is a change to BFG (Bitcoin Finality Governor) area: popm/wasm labels Feb 25, 2025
@AL-CT AL-CT force-pushed the toni/bfg-rework branch from 7d5b373 to 8ee735f Compare March 17, 2025 21:05
@AL-CT AL-CT changed the title bfg, bss, bfg: make bfg and pop miner work without tracking bitcoin themselves. bfg, bss, popm: make bfg and pop miner work without tracking bitcoin themselves. Apr 17, 2025
@joshuasing joshuasing added type: refactor This refactors existing functionality status: breaking This is a breaking and non-backwards compatible change labels Apr 22, 2025
@AL-CT AL-CT force-pushed the toni/bfg-rework branch from 16bb5a5 to 2473114 Compare April 23, 2025 14:01
@github-actions github-actions bot added the area: ci This is a change to CI files label Apr 23, 2025
@AL-CT AL-CT force-pushed the toni/bfg-rework branch from 6f14ee2 to 8f36266 Compare May 30, 2025 11:32
@marcopeereboom marcopeereboom marked this pull request as ready for review June 3, 2025 10:19
Copy link
Copy Markdown
Contributor

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Couple minor things.

And a reminder that localnode path must be set back to normal before merged. It is really important that the node running doc be at a stable path.

localnetPrivateKey = "dfe61681b31b12b04f239bc0692965c61ffc79244ed9736ffa1a72d00a23a530"
retries = 10
btcAddress = "mw47rj9rG25J67G6W8bbjRayRQjWN5ZSEG"
btcAddress = "mv5gj33YaFviPFDmkkUpb31C4uxoB4ZZ5D"
Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Not for this PR, but @ClaytonNorthey92 is there a reason you have this address in a .env file above and hardcoded here? Might be better to only specify once.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jcvernaleo likely no good reason. we can just use the .env file

@joshuasing
Copy link
Copy Markdown
Contributor

Pending localnet and e2e fixes before final review

ClaytonNorthey92 and others added 2 commits July 15, 2025 11:43
re-added localnode.  removed _localnode_fixme.  now using releases of hemi daemons to support backwards-compatibility (if we were to "build" the current daemons they would error unless we update all of localnode).
Copy link
Copy Markdown
Contributor

@jcvernaleo jcvernaleo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

OK

@joshuasing joshuasing merged commit 22552f1 into main Jul 16, 2025
7 of 9 checks passed
@joshuasing joshuasing deleted the toni/bfg-rework branch July 16, 2025 15:04
@joshuasing joshuasing removed the area: ci This is a change to CI files label Aug 4, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area: bfg This is a change to BFG (Bitcoin Finality Governor) area: bss This is a change to BSS (Bitcoin Secure Sequencer) area: docker This is a change to a Dockerfile area: hemictl This is a change to hemictl area: localnode This is a change to localnode area: make This changes a Makefile area: popm This is a change to popm (PoP Miner) area: tbc This is a change to TBC (Tiny Bitcoin) size: XXL This change is extremely large (+/- 1000+). Changes this large should be split into multiple PRs status: breaking This is a breaking and non-backwards compatible change type: refactor This refactors existing functionality

Projects

None yet

Development

Successfully merging this pull request may close these issues.

6 participants