txottl

package
v0.0.0-...-87aad58 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Nov 18, 2019 License: MIT Imports: 10 Imported by: 0

README

txottl

txottl parses a text list of transactions and builds a database of how long txos last. It can then append the txo durations to the transaction file.

This is very rough and only works well enough to get the database for utreexo IBD testing. You have to compile with firstPass() and then comment it out and compile with secondPass() to get a different executable and run them sequentially.

The txo file that txottl wants can be generated from a branch of lit. I'm sure there's a way to make one simpler and faster by parsing the blocks from a bitcoin's levelDB block store but I haven't done that.

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func BtU32

func BtU32(b []byte) uint32

4 byte slice to uint32. Returns ffffffff if something doesn't work.

func ReadTTLdb

func ReadTTLdb(sig chan bool) error

read from the DB and tack on TTL values

func U32tB

func U32tB(i uint32) []byte

uint32 to 4 bytes. Always works.

Types

type Hash

type Hash [32]byte

func HashFromString

func HashFromString(s string) Hash

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL