computer: stateful: maybe got rollback to work, tbd

This commit is contained in:
nym21
2025-08-19 23:34:05 +02:00
parent 05036c682f
commit da1ff2cacc
20 changed files with 267 additions and 139 deletions
+6 -4
View File
@@ -28,10 +28,11 @@ fn main() -> Result<()> {
println!("{height}: {hash}");
});
let block_0 = parser.get(Height::new(0));
println!(
"{}",
parser
.get(Height::new(0))
block_0
.txdata
.first()
.unwrap()
@@ -41,10 +42,11 @@ fn main() -> Result<()> {
.script_pubkey
);
let block_840_000 = parser.get(Height::new(840_000));
println!(
"{}",
parser
.get(Height::new(840_000))
block_840_000
.txdata
.first()
.unwrap()