Bitcoin Core Github
44 subscribers
121K links
Download Telegram
πŸš€ achow101 merged a pull request: "test: Validate UTXO snapshot with coin height > base height & amount > MAX_MONEY supply"
(https://github.com/bitcoin/bitcoin/pull/29617)
πŸ’¬ hebasto commented on pull request "Reintroduce external signer support for Windows":
(https://github.com/bitcoin/bitcoin/pull/29868#issuecomment-2091525067)
Rebased on top of the merged #29961.
πŸ’¬ willcl-ark commented on issue "qa: Support git worktrees when running the linters locally via Docker":
(https://github.com/bitcoin/bitcoin/issues/29972#issuecomment-2091588721)
I think it _can_ be done, although it's quite hacky:

```bash
DOCKER_BUILDKIT=1 docker build -t bitcoin-linter --file "./ci/lint_imagefile" ./ && GIT_DIR=$(git rev-parse --path-format=absolute --git-common-dir) docker run --rm -v $(pwd):/bitcoin -v "$GIT_DIR":"$GIT_DIR" -it bitcoin-linter
```

This mounts the external (real) `.git` directory (which is a symlink in the worktree, and not possible to follow from inside of the container) to the same location inside of the container, making the
...
πŸ‘ hebasto approved a pull request: "build: Assume HAVE_CONFIG_H, Add IWYU pragma keep to bitcoin-config.h includes"
(https://github.com/bitcoin/bitcoin/pull/29494#pullrequestreview-2036914913)
re-ACK fa09451f8e6799682d7e7c863f25334fd1c7dce3, only rebased since my recent [review](https://github.com/bitcoin/bitcoin/pull/29494#pullrequestreview-2028864535) (`timedata.cpp` removed in https://github.com/bitcoin/bitcoin/pull/29623).
πŸ’¬ Christewart commented on pull request "tests: fix `OP_1NEGATE` handling in `CScriptOp`":
(https://github.com/bitcoin/bitcoin/pull/29589#issuecomment-2091723640)
I've updated this PR to take @achow101 's suggestion. After 08f2c78658d8261199c75c7956fecc26efc17f3a the behavior between the c++ and python codebase is the same.

As mentioned by @dgpv and @petertodd , this now touches consensus code. Here is what I see for the implications. I'm not super familar with the c++ codebase, so please let me know if I am missing some occurrences.

### `EncodeOP_N()`

<img width="245" alt="Screenshot 2024-05-02 at 4 18 30 PM" src="https://github.com/bitcoin/bit
...
πŸ“ hebasto opened a pull request: "refactor, test: Always initialize pointer"
(https://github.com/bitcoin/bitcoin/pull/30026)
This change fixes MSVC warning [C4703](https://learn.microsoft.com/en-us/cpp/error-messages/compiler-warnings/compiler-warning-level-4-c4703).

All `DisableSpecificWarnings` dropped from `test_bitcoin.vcxproj` as all remained are inherited from `common.init.vcxproj`.

Required to simplify warning suppression porting to the CMake-based build system.
πŸ’¬ hebasto commented on pull request "refactor, test: Always initialize pointer":
(https://github.com/bitcoin/bitcoin/pull/30026#issuecomment-2091832414)
cc @jamesob as a test author
πŸ’¬ fjahr commented on pull request "Testnet4 including PoW difficulty adjustment fix":
(https://github.com/bitcoin/bitcoin/pull/29775#issuecomment-2091915882)
I had to rebase to fix a silent merge conflict and I think I managed to make the CI happy with the tests I added. In general, I think this can be moved out of draft status now since we are discussing the details of the changes in parameters but overall there seems to be no opposition to the change. I initially had removed Testnet3 as part of this already and keeping it in place makes this much less controversial/dangerous.

I have removed the adjustments on min difficulty and changed the excep
...
πŸ‘‹ fjahr's pull request is ready for review: "Testnet4 including PoW difficulty adjustment fix"
(https://github.com/bitcoin/bitcoin/pull/29775)
⚠️ 09352333528 opened an issue: "Some import path needed then."
(https://github.com/bitcoin/bitcoin/issues/30027)
Some import path needed then.

_Originally posted by @paveljanik in https://github.com/bitcoin/bitcoin/issues/8035#issuecomment-218124694_
βœ… 09352333528 closed an issue: "Some import path needed then."
(https://github.com/bitcoin/bitcoin/issues/30027)
:lock: fanquake locked an issue: "Some import path needed then."
(https://github.com/bitcoin/bitcoin/issues/30027)
πŸ’¬ fjahr commented on pull request "Testnet4 including PoW difficulty adjustment fix":
(https://github.com/bitcoin/bitcoin/pull/29775#issuecomment-2091981656)
> perhaps testnet4 should include a variant of the proposed rule from the Great Consensus Cleanup that would require the first block of a difficulty period to be no more than two hours less than the previous difficulty period’s last block’s timestamp.

I have added the corresponding code from #15482 in a separate commit as a basis for discussion.
πŸ’¬ fanquake commented on pull request "guix: build with glibc 2.31":
(https://github.com/bitcoin/bitcoin/pull/29987#issuecomment-2092041669)
Guix Build (aarch64)
```bash
d5b65771bb9c1d2e4e49fbb78305e97a99ca43e608ced495f8c437855701d6af guix-build-f5a949b90881/output/aarch64-linux-gnu/SHA256SUMS.part
113d77f864bac9382aa7598cb038a822aff2c961348ed9ca747a168ec87199bb guix-build-f5a949b90881/output/aarch64-linux-gnu/bitcoin-f5a949b90881-aarch64-linux-gnu-debug.tar.gz
4a25c348e2921d27542f39cd5ccb6c7cf3aba72c89fecf69f4f66d63c4d5b623 guix-build-f5a949b90881/output/aarch64-linux-gnu/bitcoin-f5a949b90881-aarch64-linux-gnu.tar.gz
6157c1d
...
πŸš€ fanquake merged a pull request: "refactor, fuzz: Make 64-bit shift explicit"
(https://github.com/bitcoin/bitcoin/pull/30017)
πŸ‘ MarnixCroes approved a pull request: "doc: replace remaining "520" magic nums with MAX_SCRIPT_ELEMENT_SIZE"
(https://github.com/bitcoin/bitcoin/pull/30024#pullrequestreview-2037275330)
lgtm ffc674595cb19b2fdc5705b355bdd3e7f724b860
πŸ’¬ 1440000bytes commented on pull request "chainparams: Add achow101 DNS seeder":
(https://github.com/bitcoin/bitcoin/pull/30007#issuecomment-2092079804)
Why does the seeder consider 'default port' for good nodes?
πŸ’¬ ajtowns commented on pull request "Testnet4 including PoW difficulty adjustment fix":
(https://github.com/bitcoin/bitcoin/pull/29775#issuecomment-2092080764)
> Prevent use of the 20-minute difficulty exception on the last block in a difficulty period

I think the worst case here is that someone with significant hashpower quickly mines a few retarget periods to get the difficulty to increase a lot, then stops mining, and no one else is around with enough hashpower who's willing to mine a block.

With the rule above, that means we could get to the end of the period, but would then stall, as the last block would be expensive. With the rule in the PR
...
πŸ’¬ achow101 commented on pull request "chainparams: Add achow101 DNS seeder":
(https://github.com/bitcoin/bitcoin/pull/30007#issuecomment-2092089819)
> Why does the seeder consider 'default port' for good nodes?

DNS cannot provide port numbers, but a port must be known when connecting to a node. So we assume the default port, and because of that assumption, DNS seeders need to return nodes that are listening on the default port.
πŸ’¬ emsit commented on pull request "Testnet4 including PoW difficulty adjustment fix":
(https://github.com/bitcoin/bitcoin/pull/29775#issuecomment-2092136022)

> > I'd propose the following coinbase string referencing an article published today regarding testnet: "CCN 02/May/2024 Bitcoin Testnet Could Need Reset"
>
> Happy to add this, I considered my genesis block just a placeholder anyway. The only reason we might use something different is if review here drags on for a few months and people would prefer something fresher by then. I will add it in my next push unless other reviewers disagree with the choice.
>
Is that a joke?
A person who di
...