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

Update bitcoin node version #230

Merged
merged 2 commits into from
Jul 10, 2024

Conversation

bennyhodl
Copy link
Contributor

Adds a script gen-sample-contract.sh that creates a contract an hour in the future instead of manually editing.

Updates the bitcoin-core image to the latest. In doing this, the wallets have to be legacy for the RPC client to work. The RPC client will have to update to use descriptors in the derive_contract_signer method.

Copy link
Contributor

@Tibo-lg Tibo-lg left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks great apart from the small comments. Also CI doesn't pass can you fix it?

@@ -2,7 +2,7 @@ version: "3.4"
services:
### BITCOIND
bitcoind:
image: ruimarinho/bitcoin-core:0.20.0
image: kylemanna/bitcoind:latest
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I don't like to use latest because things then break unexpectedly.

sample/Readme.md Outdated
@@ -8,6 +8,8 @@ Example configurations and contract input are available in the [examples](./exam
In order to use the [example contract](./examples/contracts/numerical_contract_input.json) you will need to update the `event_id`.
Replace the part after `btcusd` with a UNIX timestamp in the future.

Use the [helper script](../scripts/gen-sample-offer.sh) to create update the example contract 1 hour in the future. This replaces the `event_id` after `btcusd` with a UNIX timestamp 1 hour in the futre. Manually update the value for a longer time period.
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
Use the [helper script](../scripts/gen-sample-offer.sh) to create update the example contract 1 hour in the future. This replaces the `event_id` after `btcusd` with a UNIX timestamp 1 hour in the futre. Manually update the value for a longer time period.
Use the [helper script](../scripts/gen-sample-offer.sh) to create the example contract 1 hour in the future. This creates an `event_id` with a UNIX timestamp 1 hour in the future. Manually update the value for a longer time period.

@Tibo-lg
Copy link
Contributor

Tibo-lg commented Jul 10, 2024

If you rebase on master the clippy errors should be gone.

@bennyhodl bennyhodl force-pushed the update-bitcoin-node branch from cbbee6a to b449eaf Compare July 10, 2024 16:50
@Tibo-lg Tibo-lg merged commit 284c36b into p2pderivatives:master Jul 10, 2024
72 checks passed
@bennyhodl bennyhodl deleted the update-bitcoin-node branch July 11, 2024 16:08
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.

2 participants