Skip to content
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

Service and command to download Bitcoin whitepaper from the blockchain #2017

Closed
wants to merge 256 commits into from
Closed

Service and command to download Bitcoin whitepaper from the blockchain #2017

wants to merge 256 commits into from

Conversation

raulcano
Copy link
Contributor

The idea of this pull request is to have a service menu item to download the Bitcoin whitepaper from the blockchain into the Raspiblitz easily.

This adds a new item in the "additional services" menu to enable (download whitepaper) or disable (remove whitepaper) the service.

Also, this PR adds the command 'whitepaper' to the command line, which is a shortcut to enabling the service.

The paper is downloaded to:
/home/admin/bitcoin.pdf

The command used for the download is this one:
sudo -u bitcoin bitcoin-cli getblock 00000000000000ecbbff6bafb7efa2f7df05b227d5c73dca8f2635af32a2e949 0 | tail -c+92167 | for ((o=0;o<946;++o)) ; do read -rN420 x ; echo -n ${x::130}${x:132:130}${x:264:130} ; done | xxd -r -p | tail -c+9 | head -c184292 > $DownloadPath/$WhitepaperFilename

image

image

image

rootzoll and others added 30 commits September 14, 2020 12:37
Co-authored-by: rootzoll <rotzoll@MacBook2020.fritz.box>
This will allow building a raspiblitz base image with packer and spin up a development environment in a VM.
@rootzoll
Copy link
Collaborator

very sweet :D Will add PR for next release

@rootzoll rootzoll added this to the 1.7 Release milestone Feb 21, 2021
@rootzoll
Copy link
Collaborator

Hey @raulcano love to add your PR for the next release .. can you rebase your PR on the dev branch?

@raulcano
Copy link
Contributor Author

raulcano commented Mar 18, 2021

Hey @raulcano love to add your PR for the next release .. can you rebase your PR on the dev branch?

Sure! I'm new to rebasing, so it's taking a while.
I pulled the latest version from the repo but still I get 24 conflicts when I run "git rebase". It's weird because I haven't touched any of the files in conflict. If you have any pointers or suggestion, I'd appreciate it. Thanks!

edit: ok , I'm starting to understand this thing. It seems I was doing it reverse (I assumed merge and rebase where equivalent, which is not the case). I'll let you know when I'm done.

@rootzoll
Copy link
Collaborator

Rebasing after a while can be tricky ... easiest sometimes is: make a fresh branch of dev and copy your changes over manually, close this PR and make fresh PR.

@raulcano
Copy link
Contributor Author

Thanks, I'll see if I manage with the rebase, if not I'll do what you suggest. cheers!

@raulcano
Copy link
Contributor Author

It seems that I managed to rebase the branch. Let me know if there's sth else I need to do from here.

@rootzoll rootzoll changed the base branch from v1.6 to dev March 18, 2021 21:25
@rootzoll
Copy link
Collaborator

hmmm ... ich changed the base for this PR to dev and there seems a lot of changes from the v1.6 branch still in it. @raulcano if you can make a fresh PR that uses the dev branch from the beginning that would be best.

@raulcano
Copy link
Contributor Author

Ok, I'll do that and open a new PR. Cheers!

@raulcano
Copy link
Contributor Author

Created a new PR from a fresh dev branch, but I still see many conflicts ... if that's not correct I'll start from a fresh fork altogether.
#2078

@rootzoll
Copy link
Collaborator

Finally merged thru #2081 .. will be part of v1.7

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet