Comments (5)
Thanks for reporting.
About the 2m30s interval, see #30091.
from bitcoin.
Yeah, I had some difficulty understanding its behavior and I believe I grasped after studying the miner source code.
It has an internal timer whose logic is capable of doing what you want. Instead of using the calibrate
feature, go straight to using --min-nbits --ongoing
. It will mine a block very fast and automatically wait for 10 minutes until it mines the next. That way, it keeps difficulty at minimum but can keep the network pace.
See https://edil.com.br/blog/creating-a-custom-bitcoin-signet.
from bitcoin.
Can reproduce. Been running a signet network whose miner stalled a few dozens of blocks after the block 10080 difficulty adjustment.
The miner (v26.1 script) is ran as a systemd service like this, and the nbits parameter was determined by running the calibrating utility set to 600s. Despite this, before block 10080 the miner used to mine a block every 2.5 min instead of 10. I don't quite understand how it works, honestly.
miner --cli="bitcoin-cli" generate --address $rewards_addy --grind-cmd="bitcoin-util grind" --nbits=1d02257e --ongoing
from bitcoin.
Thanks for the pointer. A bit off-topic, but since there are not so many people yet who are familiar with operating a signet let me ask you a follow up question:
I'm don't really understand why the signet miner has so much logic and is so opinionated. My initial idea was to keep the difficulty as low as possible then fire a cronjob every 10 minutes to insta-mine a block at the current timestamp, so the consensus algorithm would be tricked into thinking that is the real difficulty.
I was never able to use the miner like this though, it seems to have a life of its own. No matter which nbits
value I selected it mined a block every 2m30s (until it reached block 10080 and broke soon after at 10106). And if it stopped for some time it insta-mined blocks with a backdated timestamp until it catched up to the present.
Is it possible to have a signet mining setup like that, that is not constantly raising the difficulty and wasting CPU?
from bitcoin.
@1ma, since you seem to have a high difficulty signet chain running, may I ask for a review in #30130?
from bitcoin.
Related Issues (20)
- .
- .
- .
- "heapleakdetection" entry in registry for bitcoin-qt.exe HOT 1
- An "output descriptor" should not have many different checksums HOT 4
- contrib: Automation for Bitcoin Full Node Deployment HOT 10
- Intermittent failure in feature_fee_estimation.py in sanity_check_rbf_estimates: est_feerate = node.estimatesmartfee(2)["feerate"] (KeyError: 'feerate')
- doc: deduplicate list of chain/network strings in RPC/parameter help texts HOT 3
- bitcoind shouldn't be shutdown automatically despite wallet synchronisation error HOT 14
- Question on Changing Bitcoin Blockchain Data Directory in Linux Without Redownloading HOT 1
- TSAN/MSAN fails with vm.mmap_rnd_bits=32 even with llvm 18.1.3 HOT 5
- Unable to build Bitcoin using './contrib/guix/guix-build' HOT 1
- Control-flow application capabilities for `x86_64-linux-gnu` release binaries HOT 6
- Running Bitcoin Bitcore on new Apple M3 HOT 2
- wallet: lastprocessedblock can be inconsistent with internal best block HOT 3
- Fatal LevelDB error: Corruption: block checksum mismatch on Linux ext4 SATA SSDs HOT 20
- Split socket handling out of CConnman HOT 2
- Unit test failures when using multiple jobs and RANDOM_CTX_SEED HOT 5
- Intermittent timeout on p2p_ibd_stalling.py
- b-msghand[4988] general protection fault HOT 16
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from bitcoin.