One line, two coins, seven years: how MishaBoar fixed a Dogecoin build issue that Bitcoin already solved in 2019
Some of the best open-source fixes are tiny. This one changes a single line, yet there's a nice story behind it that runs from a cryptography library through Bitcoin Core all the way to Dogecoin. Let's walk through it, no prior knowledge needed.
Part 1: What is secp256k1 anyway?
Every time you send DOGE, your wallet signs the transaction with your private key. The math behind that signature runs on an elliptic curve called secp256k1, the same one Bitcoin uses.
Bitcoin Core developers wrote a fast and carefully audited C library for it: libsecp256k1. Dogecoin doesn't reinvent it. It ships a copy inside its own repository, in src/secp256k1/. That copy is a git subtree, which basically means: "take the upstream code as-is and refresh it from time to time."
The library has its own build configuration (configure.ac) with switches like "build the tests?" and "build the benchmarks?". Benchmarks are small programs that measure how fast signing and verifying are. They're handy for library developers, but a node operator building Dogecoin Core doesn't need them.
Part 2: Upstream flips a default
At some point, the secp256k1 developers decided that benchmarks should be built by default. That was secp256k1 PR #480. In the library's configure.ac the default went from no to yes, roughly like this (simplified):
AC_ARG_ENABLE(benchmark,
- AS_HELP_STRING([--enable-benchmark],[compile benchmark (default is no)]),
+ AS_HELP_STRING([--enable-benchmark],[compile benchmark (default is yes)]),
[use_benchmark=$enableval],
- [use_benchmark=no])
+ [use_benchmark=yes])
For the library on its own, that makes sense. But anyone who bundles the library, like Bitcoin and Dogecoin, inherits the new default the next time they update their copy.
Part 3: Bitcoin notices and fixes it (2019)
Bitcoin Core picked up the new upstream code in a subtree update (bitcoin#15703). After that, the secp256k1 benchmarks were suddenly built along with everything else, even though Bitcoin had no use for them.
The fix came in bitcoin#16573, "build: disable building libsecp256k1 benchmarks". The clever part is where they fixed it. They didn't touch the secp256k1 code; any change there would be overwritten by the next subtree update. Instead, they told the library what to do from the outside.
Bitcoin's top-level configure.ac already passes a list of options down to secp256k1's configure script. They simply added one more:
--enable-benchmark=no
Problem solved, at least for Bitcoin.
Part 4: Dogecoin walks into the same trap (2022)
Dogecoin is a Bitcoin fork, but it doesn't automatically get every Bitcoin fix. In 2022, dogecoin#3082 updated Dogecoin's bundled secp256k1 to a much newer version. That was a good and important update, but it also brought in upstream's "benchmarks on by default" setting, and nobody added the Bitcoin-style override.
Today you can still see the default inside Dogecoin's copy of the library, in src/secp256k1/configure.ac (lines 119–121):
AC_ARG_ENABLE(benchmark,
AS_HELP_STRING([--enable-benchmark],[compile benchmark [default=yes]]), [],
[SECP_SET_DEFAULT([enable_benchmark], [yes], [yes])])
Side note for the curious: it looks different from the PR #480 snippet above because upstream refactored its build system in the meantime. use_benchmark became enable_benchmark, and the default is set through a helper macro called SECP_SET_DEFAULT. The result is the same: benchmarks on by default. (And if you go looking in src/univalue/configure.ac, you won't find it there. UniValue is a separate JSON library and has nothing to do with this.)
So from 2022 on, every make check on Dogecoin also compiled secp256k1 benchmarks that nobody ran. It gets worse: one of them, the recovery benchmark, uses an include path that breaks when you build out-of-tree (building in a separate folder instead of inside the source directory). That makes make check fail outright for that setup. Upstream fixed the include path later in secp256k1#1116, but Dogecoin won't get that fix until its next subtree update.
Part 5: Enter MishaBoar (2026)
This is where MishaBoar comes in. In dogecoin#4098 (commit db67afd), he applied exactly the same fix Bitcoin made in 2019, in exactly the right place: Dogecoin's top-level configure.ac, line 1274:
-ac_configure_args="${ac_configure_args} --disable-shared --with-pic --with-bignum=no --enable-module-recovery"
+ac_configure_args="${ac_configure_args} --disable-shared --with-pic --enable-benchmark=no --with-bignum=no --enable-module-recovery"
AC_CONFIG_SUBDIRS([src/secp256k1])
What this line does in plain English:
ac_configure_args is the list of options Dogecoin's build hands down to sub-projects.AC_CONFIG_SUBDIRS([src/secp256k1]) then runs secp256k1's own configure script with those options.--enable-benchmark=no overrides the library's yes default, so the benchmarks are no longer built.
One line, and:
make check no longer builds code that nobody runs, so builds get a little faster- out-of-tree builds no longer trip over the broken recovery benchmark
- the bundled library stays untouched, so the next subtree update won't wipe the fix out
- Dogecoin's build is back in line with what Bitcoin Core has done since 2019
The PR was merged on November 19, 2026. 🎉
Why this matters, and why you can do it too
Nobody in the news writes about fixes like this. But it's exactly this kind of work that keeps a codebase healthy: noticing that something is off, tracing it back to its origin (here through two other projects!), checking how others solved it, and then making the smallest correct change.
Also worth knowing: MishaBoar didn't start with build systems. His first contributions to Dogecoin back in 2022 were Italian translations for the wallet. Open source has many entry points:
- Translations: the Qt wallet has lots of languages that need love
- Documentation: if something confused you, it probably confuses others too
- Building from source: follow the build docs, and if something breaks, that's often your first issue or PR
- Reading the git history:
git log -p -- configure.ac is a surprisingly good history lesson - Comparing with Bitcoin: lots of Bitcoin Core fixes are still waiting to be checked against Dogecoin
You don't need to be a cryptographer to make Dogecoin better. You just have to look closely.
A question for MishaBoar
Thanks for the fix, u/MishaBoar! We're curious: how did you actually stumble onto this? Did an out-of-tree make check blow up on you, did you notice the benchmark binaries showing up in your build, or did you come at it from the Bitcoin side and go looking for fixes Dogecoin hadn't picked up yet? And what would you suggest to someone who wants to start digging into the build system themselves?
Much build. Very fix. Wow. 🐕