syncing my node
https://www.theinvestorspodcast.com/bitcoin-fundamentals/bitcoins-2024-technical-overview-nvk/
Great listen. Appreciated NVK's perspective on bitcoin, scaling solutions, and AI.
I use Vim. here is a remap I use a lot
vnoremap
here is a simple config file
$ cat ~/.bitcoin/bitcoin.conf
regtest=1
txindex=1
[regtest]
wallet=/home/j/.bitcoin/regtest/wallets/j-regtest
figured it out. learned much more than I anticipated, alot about bitcoin.conf
but then the python code to specify the network you want is simple:
import bitcoin
from bitcoin.rpc import RawProxy
bitcoin.SelectParams("regtest")
# Create a connection to local Bitcoin Core node (regtest)
p = RawProxy()
info = p.getblockchaininfo()
print(info["blocks"])
worth it's weight in bitcoin.
rn working on figuring out how to use python-bitcoinlib to access bitcoin core's JSON-RPC for regtest network

or how bout we chain method calls?
fn read_bitcoin_file() -> Result
let mut bitcoin_amount = String::new();
File::open("bitcoin_amount_file.txt")?.read_to_string(&mut bitcoin_amount)?;
Ok(bitcoin_amount.trim().parse::
}
SEA-ME-WE 3
keys to the internet.
watch DNSSEC key signing ceremony #52 planned for Feb 14, 2024 at 21:00:00 UTC in El Segundo, CA
look at the difference
WITH
fn read_bitcoin_file(file_name: &str) -> Result
let mut bitcoin_file = File::open(file_name)?;
let mut bitcoin_amount = String::new();
bitcoin_file.read_to_string(&mut bitcoin_amount)?;
let amount: f64 = bitcoin_amount.trim().parse().unwrap();
Ok(amount)
}
WITHOUT
fn read_bitcoin_file(file_name: &str) -> Result
let bitcoin_file_result = File::open(file_name);
let mut bitcoin_file = match bitcoin_file_result {
Ok(bf) => bf,
Err(e) => return Err(e),
};
let mut bitcoin_amount = String::new();
let bitcoin_amount = match bitcoin_file.read_to_string(&mut bitcoin_amount) {
Ok(_) => bitcoin_amount,
Err(e) => return Err(e),
};
let bitcoin_amount = bitcoin_amount.trim().parse::
Ok(bitcoin_amount)
}
love syntactic sugar of the ? operator in rust
can't wait to work on bitcoin & rust tonight after work
finished chapter 2 of mastering bitcoin 3rd ed. working through chapter 8 of rust book. putting in POW
~midnight now. time to rest and solidify learning
putting in work learning rust. finished ch7 tonight.
exciting nostr:npub1jg552aulj07skd6e7y2hu0vl5g8nl5jvfw8jhn6jpjk0vjd0waksvl6n8n talk #26 with christian lewe talking about simplicity
"bitcoin's last softfork?"
rustacean in training
happy bday bitcoin
rust in the day
nostr at night
putting in that POW