Bitcoin Core Github
43 subscribers
123K links
Download Telegram
πŸ“ hebasto opened a pull request: "test: Remove `system_tests/run_command` runtime dependencies"
(https://github.com/bitcoin/bitcoin/pull/33929)
`system_tests` currently rely on the presence of `cat`, `echo`, `false` and `sh` in `PATH` at runtime.

This PR:
1. Removes these dependencies.
2. Eliminates all but one platform-specific code paths.
⚠️ taoteh1221 opened an issue: "Documentation on 'services' parsing in RPC response for getnodeaddresses"
(https://github.com/bitcoin/bitcoin/issues/33930)
### Please describe the feature you'd like to see added.

I can't find any docs on how you parse `services` results for `getnodeaddresses` RPC data requests:

https://bitcoincore.org/en/doc/30.0.0/rpc/network/getnodeaddresses/

I'm hoping to have a more user friendly interface, other than the raw services number for a geolocation search filter:

<img width="1836" height="1206" alt="Image" src="https://github.com/user-attachments/assets/4b845c48-10b4-4098-86c2-fcf22ce49cff" />

### Is your featu
...
πŸ’¬ pinheadmz commented on issue "Documentation on 'services' parsing in RPC response for getnodeaddresses":
(https://github.com/bitcoin/bitcoin/issues/33930#issuecomment-3568571196)
It's a bitfield, defined here:

https://github.com/bitcoin/bitcoin/blob/0690514d4f72aac251ee0b876cded9187d42c63e/src/protocol.h#L308-L339

You're right that it's not super well documented but you can find some information:

https://en.bitcoin.it/wiki/Protocol_documentation#version

https://bitcoin.stackexchange.com/search?q=service+bits
πŸ’¬ taoteh1221 commented on issue "Documentation on 'services' parsing in RPC response for getnodeaddresses":
(https://github.com/bitcoin/bitcoin/issues/33930#issuecomment-3568602551)
Thanks for pointing me in the right direction @pinheadmz. πŸ‘ Googling didn't get me too far.

I'm looking to filter mining, ln, etc (if possible), in the geolocation GUI results filters. Hopefully this is possible. Will deep dive your source file and 3rd party links this week, thanks very much.

I can close this issue, unless you all think it's feasible enough to keep open? I'm sure their are a ton of higher priorities, I just came up nearly blank on google, so figured I'd ping it here. Thanks
...
πŸ’¬ taoteh1221 commented on issue "Documentation on 'services' parsing in RPC response for getnodeaddresses":
(https://github.com/bitcoin/bitcoin/issues/33930#issuecomment-3568609429)
I see the source seems to suggest only P2P-related stuff is flagged into the `services` value, if I'm reading it right.
πŸ’¬ Sakzz1994 commented on pull request "kernel: Remove dependency on clientversion":
(https://github.com/bitcoin/bitcoin/pull/32543#issuecomment-3568621143)
πŸ‘Ž
πŸ’¬ taoteh1221 commented on issue "Documentation on 'services' parsing in RPC response for getnodeaddresses":
(https://github.com/bitcoin/bitcoin/issues/33930#issuecomment-3568621814)
Seems I may need to look at other endpoints for the data I seek. Was hoping to keep overhead low with a single call to `getnodeaddresses`, as this will be run on low power devices on home / internal networks often...but doesn't look like I can do that.
πŸ’¬ 151henry151 commented on pull request "Align legacy script policy with P2SH policy in AreInputsStandard":
(https://github.com/bitcoin/bitcoin/pull/33926#issuecomment-3568629509)
The fuzz tests were failing because we called `GetSigOpCount(true)` on potentially malformed NONSTANDARD scripts. When fuzzing feeds invalid opcodes, `DecodeOP_N` can hit an assert. I added a `HasValidOps()` check before calling `GetSigOpCount` so we only process well-formed scripts, which fixes the fuzz failures.
⚠️ dachengcheng2022 opened an issue: "how to syn testnet4 data"
(https://github.com/bitcoin/bitcoin/issues/33931)
### Is there an existing issue for this?

- [x] I have searched the existing issues

### Current behaviour

Bitcoin Core daemon version v30.0.0
config is
`# Listen for RPC connections on this TCP port:
testnet=1
server=1
txindex=1

[test] # ⭐ 必鑻写这δΈͺ section
wallet=testwallet
# Allow internal networks to communicate to the RPC endpoint
rpcbind=0.0.0.0
rpcallowip=0.0.0.0/0
rpcport=18332
rpcuser=test
rpcpassword=test
fallbackfee=0.0001`

syn is testnet3 data now

### Expected behavio
...
πŸ’¬ sipa commented on issue "Documentation on 'services' parsing in RPC response for getnodeaddresses":
(https://github.com/bitcoin/bitcoin/issues/33930#issuecomment-3568645276)
Bitcoin nodes have no knowledge about what other functionality may run on top, like LN or mining. The "services" the P2P node network knows about only relate to functionality offered over that P2P network.
βœ… taoteh1221 closed an issue: "Documentation on 'services' parsing in RPC response for getnodeaddresses"
(https://github.com/bitcoin/bitcoin/issues/33930)
πŸ’¬ taoteh1221 commented on issue "Documentation on 'services' parsing in RPC response for getnodeaddresses":
(https://github.com/bitcoin/bitcoin/issues/33930#issuecomment-3568664817)
Thanks @sipa, I appreciate the quick response. πŸ‘
πŸ’¬ 151henry151 commented on pull request "Align legacy script policy with P2SH policy in AreInputsStandard":
(https://github.com/bitcoin/bitcoin/pull/33926#issuecomment-3568675720)
There was another issue in the `feature_taproot.py` test where the "compat/nocsa" test case incorrectly assumed bare NONSTANDARD scripts with `OP_CHECKSIGADD` would pass `AreInputsStandard`. Since `OP_CHECKSIGADD` (0xba) exceeds `MAX_OPCODE` (0xb9), `HasValidOps()` returns false, so `AreInputsStandard` rejects it regardless of sigop count. I restored the original standardness logic requiring wrapping (p2sh or witv0) for this case.

There's also a fuzzer failure in `process_messages` with an as
...
πŸ’¬ 151henry151 commented on pull request "Align legacy script policy with P2SH policy in AreInputsStandard":
(https://github.com/bitcoin/bitcoin/pull/33926#issuecomment-3568706803)
It looks like the fuzzer failure in `process_messages` came from the mempool consistency check. When checking inputs, if an input references an output from another mempool transaction, that output must be in `mempoolDuplicate` before the assertion. Transactions are sorted by ancestor count, but there can be cases where a parent's output isn't in `mempoolDuplicate` when a child is checked. The fix adds the parent transaction's output to `mempoolDuplicate` before the assertion, making the check mo
...
πŸ’¬ 151henry151 commented on pull request "Align legacy script policy with P2SH policy in AreInputsStandard":
(https://github.com/bitcoin/bitcoin/pull/33926#issuecomment-3568779013)
I think the mempool consistency check was failing because input coins weren't always available in mempoolDuplicate when the assertion checked for them. The fix in [73399e8](https://github.com/bitcoin/bitcoin/pull/33926/commits/73399e80a20c57cb6ba3a8e766be9166d840e526) ensures both mempool transaction outputs and UTXO set coins are available in mempoolDuplicate before the assertion, which should resolve the fuzzer failure.
πŸ’¬ plebhash commented on issue "Block template memory management (for IPC clients)":
(https://github.com/bitcoin/bitcoin/issues/33899#issuecomment-3568788623)
we are getting reports of crashes on https://github.com/stratum-mining/sv2-apps/pull/59#issuecomment-3568252007

originally I suspected there could be thread-related issues similar to what I reported on https://github.com/bitcoin/bitcoin/issues/33923, but it turns out it was the (relatively weak) VPS running out of memory, which only happened after long (12h+) running sessions

so I leveraged [`psrecord`](https://github.com/astrofrog/psrecord) to observe how Bitcoin Core (a14e7b9dee9145920f93eab
...
πŸ’¬ 151henry151 commented on pull request "Align legacy script policy with P2SH policy in AreInputsStandard":
(https://github.com/bitcoin/bitcoin/pull/33926#issuecomment-3568915804)
After finding the fuzz tests were still failing, I've amended to add all transaction outputs to mempoolDuplicate after processing inputs.
βœ… maflcko closed an issue: "`bitcoin-node` is unkillable after mining IPC connection is established"
(https://github.com/bitcoin/bitcoin/issues/33463)
βœ… maflcko closed an issue: "how to syn testnet4 data"
(https://github.com/bitcoin/bitcoin/issues/33931)