Avatar
jex
1f0b7103e799e60b76d849bf2696d25820472619d5b0453bc781cb3f78008477

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.

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::().unwrap())

}

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

https://www.iana.org/dnssec/ceremonies/52

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::().unwrap();

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?"

thx satoshi nakamoto

"The Times 03/Jan/2009 Chancellor on brink of second bailout for banks"

rustacean in training

happy bday bitcoin

rust in the day

nostr at night

putting in that POW