-
Notifications
You must be signed in to change notification settings - Fork 381
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Adding script to generate element blocks for 1 of 1 regtest #109
Conversation
We still verify the headers of the last -checkblocks blocks.
Allows CCoinsCacheEntry/CCoinsMap entries to either be a CCoins or, by setting a flag in the map key, a withdraw output from a chain from which withdraw proofs are allowed to move to this chain from.
You might want to wrap the function call into
to make the module importable 😃 |
I'll add this later tonight, I also justt placed the script in the top level directory, should it be moved somewhere else? |
…s for datadir and num blocks to generate
Added changes suggested by @cdecker , also adding command line arguments so we can now use it like so:
where |
generate_element_blocks.py
Outdated
parser = argparse.ArgumentParser() | ||
parser.add_argument('--num') | ||
parser.add_argument("--datadir") | ||
datadir="~/.bitcoin/elements.conf" |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Not sure if you want to do
datadir="~/.bitcoin/elements/"
or
conf="~/.bitcoin/elements/elements.conf"
Needs rebase (just remove all the commits except yours and I think it should rebase without conflicts). |
Actually, no, it needs to be reopened as a PR to |
Adds a simple python script to generate blocks for elements on regtest