Bitcoin Stack Exchange is a question and answer site for Bitcoin crypto-currency enthusiasts. It only takes a minute to sign up.
Sign up to join this communityAnybody can ask a question
Anybody can answer
The best answers are voted up and rise to the top
I'm trying to write a code in Rust to sanity check if the bitcoind version of the local machine is upto date with the version that we are currently using in our organisation (say v22.0.0). We have a global variable: org_bitcoind_version = v22.0.0 ;
What could be the code for the required sanity checker function?
You can check bitcoind version using : bitcoind --version
I have not tried this code but you can execute binary with some arguments using any language:
std::process::Command; fn main() { let bitcoind = Command::new("bitcoind") .arg("version") .output().unwrap(); println!("Version: {}", String::from_utf8_lossy(&bitcoind.stdout)); }
If the version is printed correctly you can compare it with some strings.
![Get BONUS $200 for FREE! Get BONUS $200 for FREE!](/img/socialgood3.jpg)
You can get bonuses upto $100 FREE BONUS when you:
๐ฐ Install these recommended apps:
๐ฒ SocialGood - 100% Crypto Back on Everyday Shopping
๐ฒ xPortal - The DeFi For The Next Billion
๐ฒ CryptoTab Browser - Lightweight, fast, and ready to mine!
๐ฐ Register on these recommended exchanges:
๐ก Binance๐ก Bitfinex๐ก Bitmart๐ก Bittrex๐ก Bitget
๐ก CoinEx๐ก Crypto.com๐ก Gate.io๐ก Huobi๐ก Kucoin.
Comments