Comments (6)
I need to use a custom user and password but didn't notice that it's deprecated, using the -rpcauth works fine.
Great, a specific error would've saved me some time 😅
I'll work in a PR candidate to fix and update to give a proper error.
from bitcoind.
@RCasatta Please let me know if the bug makes sense or was expected behavior, and if any more info is needed.
If it either needs to fix to return an error or to accept the arguments and not consider the .cookie file I will be more than happy to discuss a solution, build the fix, and open a PR.
from bitcoind.
cookie support dates back to bitcoin core version 0.12, do you need to test with versions prior to this?
I think we should probably prevent users to specify rpcuser
and rpcpassword
and give a proper error.
from bitcoind.
Thanks for opening this issue - I was using rpcuser
/ rpcpassword
, and seeing that there were problems with it saved me a bunch of debugging. If rpcuser
/ rpcpassword
are known not to work, perhaps it should be documented somewhere? I had the assumption that although those options were deprecated in bitcoind
, they would still be generally work, as this crate seems to be a relatively thin wrapper around bitcoind
.
from bitcoind.
@MaxFangX I'm really glad that the issue helped and saved you a lot of time, I've used a lot of debugging time to figure out the problem 😅
I've not finished my work on a draft PR due to my final exams and SoB project
I'll try to open it in the next few days to add a better error message as discussed with RCasatta above.
from bitcoind.
@RCasatta I've now opened PR #72 related to this issue, would really appreciate a review.
I think would also be useful to have a function to produce the -rpcauth
expected value, wdyt ?
I can port the bitcoin core python script like this one: https://github.com/testcontainers/testcontainers-rs/blob/dev/testcontainers/src/images/coblox_bitcoincore.rs#L40-L91
cc @MaxFangX
from bitcoind.
Related Issues (20)
- add cargo audit in CI
- v27.1 is NOT 1.41.1 MSRV because of ureq HOT 4
- Remove the `time = "=0.3.10"` hack once MSRV reaches 1.59 HOT 5
- Address the race condition HOT 6
- which 4.4.0 is broken on 1.41.0 HOT 1
- Allow to configure alternate mirrors HOT 1
- Improve docs HOT 2
- feature gated `Bitcoind::from_downloaded()`
- Use bitcoin 0.30, bump MSRV to 1.48.0 HOT 1
- Remove bitcoin core minor versions? HOT 1
- Should allow both env var and feature
- Making `bitcoind` and `electrsd` production-grade? HOT 6
- Nix friendly `build.rs` by avoiding direct downloads HOT 10
- Migrate to rust `1.57.0`, is someone relying on MSRV `1.48.0` ? HOT 4
- Convert index access with `get`
- Add build with MSRV in scheduled job
- Auto tag release
- Should this crate move to the rust-bitcoin organisation? HOT 6
- error with bitcoincore-json dependency HOT 3
- The fate of this repo HOT 6
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 bitcoind.