Comments (3)
Ok, after a bit of painstaking debugging, here's the issue...
line 71 panics because the previous line (line 70) return nil for the idx
value. And the current code doesn't do anything to check for nil
values which eventually causes a panic.
Taking an even deeper dive into why my dev env is getting a nil
value at all, is because of line 322 where we generate the error
leveldb: not found
We then swallow the error, print nothing, and just return nil. Which as you can imagine, doesn't give the user much insight/knowledge into what the actual problem is.
Proposal
At line 322, we add a error print statement with the error so its more obvious what the problem is. Thoughts? If people agree, i can open an PR.
from btcd.
Well, "not found" isn't referencing leveldb not being installed itself, its refering to a key not being found in the database. Back to the drawing board...
from btcd.
I finally figured out my issue, there seems to be some bad data files in the block database folder. Rm'ing all the files in the testnet (~/Library/Application Support/Btcd/data/testnet/blocks_ffldb
)
from btcd.
Related Issues (12)
- Consider moving to lightningnetwork/btcd HOT 3
- Build failure with latest master HOT 1
- starting btcd causes panic HOT 3
- roasbeef/btcd does not start with chain data created by btcsuite/btcd HOT 1
- Why does btcd keep stalling while syncing the chain?
- SYNC: Failed to process block HOT 2
- Unable to checkout golang.org/x/crypto
- msi for windows install HOT 1
- Is this fork still necessary, or does main btcd work now? HOT 3
- btcd.conf file not automatically created for simnet HOT 2
- Can we use musig2 for consensus algorithm between validators HOT 2
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 btcd.