Comments (6)
I've made 2 pull requests (one for each branch #53, #54) to allow difficulty adjustment on current testnet.
I planned a testnet hard fork on 15/03/2014 (not a lot of users will be affected, so, I think this date is OK).
Please, review this code soon so we could do tests on testnet again :p
from namecoin-legacy.
This is GREAT timing!
from namecoin-legacy.
I've tested the patch with a past date and successfully generated the next block in some seconds (you can see it on the block explorer : 34715. As it has a time before 15 Mar, it is only valid for my modified node).
The block 34716 didn't generate in some seconds, as expected.
from namecoin-legacy.
Hurray! What's the recommended process to test? Just pull the branch code, build and run in namecoind -testnet?
from namecoin-legacy.
The new code has successfully broken the Feb 14 logjam on namecoin-testnet. However, the current difficulty still seems to be rather high. If the namecoin (testnet) block chain is supposed to have a target of one new block every 10 minutes, then we're still pretty far off of that goal.
Observed behavior with the latest difficulty adjustment fixes: If no new blocks have been generated in the past 20 minutes, then starting namecoind --testnet --gen=1 will generate a new block almost immediately (within 3 minutes, typically). After that initial block, though, it may be hours before the next block is generated. I can "force" a new block by stopping the hash generator (setgenerate false) and restarting the hash generator (setgenerate true). If I do this more than 20 minutes after the last block appeared on the blockchain, then it will spit out a new block almost immediately. Lather 20 minutes, Rinse, Repeat.
I have a 2nd machine running the same 0.3.73 build of namecoin on testnet that I leave running 24/7. It generates a new block roughly every 4 hours overnight.
Is the difficulty adjustment supposed to reduce difficulty until the network-wide block generation rate approaches the 10 minute goal? If so, it doesn't seem to be doing that. The difficulty adjustment only seems to apply when first starting the hash generator.
p.s. The rate of new blocks shown in http://testnet.explorer.namecoin.info/ is artificially elevated because I've been "forcing" new blocks every 20 minutes or so throughout the day to get enough confirmations through so I can get on with my product development experiments using namecoin testnet. 120 confirmations at 4 to 6 hours each means the testnet coins I mined last week won't be available for at least a month!
from namecoin-legacy.
The patch is supposed to allow a new block after 20mn, with the min difficulty.
.
From what you say, the rpc command "setgenerate true" (same as the command line option, but easier to enable/disable) doesn't seem to get the right difficulty after the first block... A minor bug which would require a new issue I guess.
If you do "setgenerate true" / [block generated] / "setgenerate false" / [wait 20mn] / "setgenerate true", you should have a second block.
from namecoin-legacy.
Related Issues (20)
- Namecoin-Qt.app 0.3.76 crashes on launch [OSX] HOT 11
- EXCEPTION: St12out_of_range CInv::GetCommand() : type=3 unknown type namecoin in ProcessMessage() HOT 2
- repo key expired HOT 5
- Release with PR213
- name_filter command is failing HOT 6
- Inquiry HOT 2
- Building namecoinq-release on OS X results in binaries different from released binaries HOT 13
- Link to Namecoin Core HOT 1
- Linux packages don't download via HTTPS HOT 7
- How long can the JSON be if using a custom string? HOT 4
- namecoind not working, unclear why HOT 2
- name_filter command fails for large queries HOT 8
- listtransactions command from not working correct HOT 2
- Please add Ubuntu 16.04 builds to downloads HOT 6
- Namecoin 0.3.80 not syncing via proxy on winXP HOT 5
- forum.namecoin.org registration is useless HOT 1
- Key Expired: 2017-06-04 for p_conrad repository HOT 4
- Where can i buy some namecoin? BitYep.com or Bitfinex? HOT 1
- Namecoin/Bitcoin malloc() error in OpenBSD 6.2amd64 HOT 1
- Reachability of .bit domain
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 namecoin-legacy.