Commit graph

4102 commits

Author SHA1 Message Date
ziggieXXX
5fda9244ff
Merge bf152f9cbb into 6afce8d608 2025-03-11 10:08:42 +09:00
Oliver Gugger
6afce8d608
Merge pull request #2336 from argentpapa/master
multi: remove deprecated io/ioutil
2025-03-10 09:34:34 -06:00
argentpapa
7af88526af multi: remove deprecated io/ioutil 2025-03-09 15:47:34 +08:00
Oliver Gugger
c7191d2913
Merge pull request #2334 from petersssong/master
multi:use t.TempDir replace os.MkdirTemp to simplify test temp dir manager
2025-03-07 04:45:30 -06:00
petersssong
6f09db1924 multi:use t.TempDir replace os.MkdirTemp 2025-03-07 16:54:47 +08:00
Olaoluwa Osuntokun
2a64716b1c
Merge pull request #2331 from yyforyongyu/update-ci
github: upgrade the CI
2025-03-05 15:42:25 -08:00
yyforyongyu
dc88df9a3c
github: add issue template 2025-03-05 07:04:22 +08:00
yyforyongyu
b4a1215075
github: add pull request template 2025-03-05 06:55:56 +08:00
yyforyongyu
d9e3077ad7
workflows: update versions of the actions 2025-03-05 04:03:15 +08:00
yyforyongyu
d7aa8e5f89
workflows: rename go.yml to main.yml 2025-03-05 03:53:59 +08:00
Yong
bb52d7d78d
Merge pull request #2303 from davidcardenasus/master
chore: update license
2025-02-13 23:28:32 +08:00
Yong
aa58ce24b9
Merge pull request #2317 from finaltrip/master
refactor: using slices.Contains to simplify the code
2025-02-13 10:36:07 +08:00
finaltrip
c448768d1f refactor: using slices.Contains to simplify the code
Signed-off-by: finaltrip <finaltrip@qq.com>
2025-02-13 00:02:09 +08:00
Oliver Gugger
380c66b11b
Merge pull request #2316 from rabbitprincess/feature/bump-go-version
deps: bump go version
2025-02-11 02:18:35 -06:00
Kim
ca8059b59d bump go mod versions 2025-02-10 16:37:15 +09:00
David Cardenas
75a1d4134a
Update license 2025-01-14 19:58:46 -08:00
Oliver Gugger
09ba026580
Merge pull request #2296 from btcsuite/psbt-global-xpub
psbt: add support for PSBT_GLOBAL_XPUB type
2025-01-14 14:29:50 -06:00
Oliver Gugger
bda0481701
psbt: add global XPubs to packet
Adds support for the PSBT_GLOBAL_XPUB type as defined in BIP-0174.
2025-01-14 21:19:35 +01:00
Olaoluwa Osuntokun
f3bd1f58e7
Merge pull request #2276 from starius/wire-signet
wire: add bitcoin network magic for default SigNet
2025-01-13 18:03:32 -08:00
Romashka
821114285b
typo-Update register_test.go (#2291) 2025-01-09 08:32:50 -05:00
Calvin Kim
c2b47e0149
main: add prune documentation to sample-btcd.conf (#2299) 2025-01-02 10:20:37 -05:00
Oliver Gugger
bdb0b3d821
psbt: cleanup code 2024-12-26 11:13:57 +01:00
Oliver Gugger
b1b1e9551b
Merge pull request #2273 from ynewmann/fix/batch-data-race
rpcclient: safe read and write to batch
2024-12-18 22:38:09 +01:00
Yevhen
db5318b356 rpcclient: safe read and write to batch 2024-12-17 12:06:14 +02:00
ziggie
bf152f9cbb
btcec: add deep copy method for public keys 2024-12-11 10:52:41 +01:00
Olaoluwa Osuntokun
e646d437e9
Merge pull request #2277 from yyforyongyu/fix-shutdown-itest
rpctest: make sure to `WaitForShutdown`
2024-12-10 10:58:28 +01:00
Olaoluwa Osuntokun
ec0b90d2e2
Merge pull request #2269 from same-id/fix-non-root-hosts
Fix non-root hosts failing on resolving DNS
2024-12-05 16:27:07 +01:00
Sam Eiderman
42d6eba84b Fix non-root hosts failing on resolving DNS
A fix for a bug introduced by #2168

Previously, config.Host worked in the following way:
1. Documented as supporting ip addresses only
2. In fact supported "host/path" syntax
3. Did not support "scheme" prefixes, i.e. https://

Not sure this is the desired approach, probably the best thing would
have been to extend config to contain "Scheme" and "Path" fields as well.

However, this was the way it worked.

1. Now Host can contain scheme prefixes "unix://..."
2. Host can no longer contain ".../path"

This PR solves this behavior while maintaining support of the "unix://" flow
as well.

For some reason, "scheme" is named "network" in #2168 - I did not change that.

Also remove disambiguation in "network:address:port", where it parsed
"myhost:8888" as network:address instead address:port.
2024-12-05 09:01:21 +02:00
yyforyongyu
814a1fc198
rpctest: make sure to WaitForShutdown 2024-12-03 23:44:16 +08:00
Olaoluwa Osuntokun
25c804f13f
Merge pull request #2281 from kcalvinalvin/2024-11-29-fix-ibd-not-working
wire, peer: fix broken ibd
2024-12-03 16:18:13 +01:00
Calvin Kim
48c02954d2 wire, peer: fix broken ibd
IBD for new nodes were broken due to the version handshake failing
between nodes that recognized wtxid based relays.  Reverting the changes
that were made so that the node is able to connect to those nodes.
2024-11-29 15:07:01 +09:00
Boris Nagaev
38af045ab1
wire: add bitcoin network magic for default SigNet
Added constant wire.SigNet, added it to stringer for BitcoinNet type.
Added a test in chaincfg to compare calculated magic value with the constant.
2024-11-25 10:29:15 -03:00
Olaoluwa Osuntokun
e9d95eed43
Merge pull request #2223 from kcalvinalvin/2024-08-06-execution-trace-flag
main: add flag to write execution traces
2024-11-20 12:27:09 -08:00
Calvin Kim
10ef9cc042 main: add flag to write execution traces
Execution traces are part of the go runtime tooling and is useful to
check what is slowing down the ibd.  For example, a slow ibd because of
slow block downloads from peers won't show up on cpu profiling but will
on a trace.
2024-11-20 17:50:51 +09:00
Marco Peereboom
684d64ad74
Add support for wtxidrelay message. (#2272)
* Add support for wtxidrelay message.

This adds support for the wtxidrelay (BIP339) message in wire.

While here, add tests for sendaddrv2 and rename AddrV2Version to
SendAddrV2Version in order to make the code consistent with all other
messages. This diff does keep the old AddrV2Version constant for
backwards compatibility.

* Bump copyrights
2024-11-06 13:03:27 +00:00
Oliver Gugger
24eb815168
Merge pull request #2256 from ziggie1984/timeout-https-client
rpcclient: add timeout to http request.
2024-10-11 06:58:36 -06:00
ziggie
44c874f9f6
rpcclient: add http timeout 2024-10-10 10:05:01 +02:00
Abirdcfly
ee68dc66a8
btcec+mempool: delete minor unreachable code caused by t.Fatal
Signed-off-by: Abirdcfly <fp544037857@gmail.com>
2024-10-08 15:09:20 +02:00
Santiago Rincon
b513ac2da7
docs: correct link to redirect to btcutil docs 2024-10-08 15:05:33 +02:00
Afanti
433781aaff
multi: fix typos 2024-10-08 14:47:41 +02:00
omahs
019988b696
multi: fix typos 2024-10-08 14:41:44 +02:00
Olaoluwa Osuntokun
b4afc08a35
Merge pull request #2228 from lencap/master
chore: fix some comments
2024-10-08 14:40:33 +02:00
Oliver Gugger
e9b505dc7e
Merge pull request #2255 from huochexizhan/master
Formatting code with gofmt
2024-10-08 04:35:02 -06:00
huochexizhan
35df8015ba Formatting code with gofmt
Signed-off-by: huochexizhan <huochexizhan@outlook.com>
2024-09-25 17:56:44 +08:00
Olaoluwa Osuntokun
67b8efd3ba
Merge pull request #2245 from guggero/getnetworkinfo-warnings
btcjson: turn warnings into StringOrArray type
2024-09-21 14:29:13 +09:00
Oliver Gugger
ed879eac20
btcjson: turn warnings into StringOrArray type
Fixes #2224 and lightningnetwork/lnd#9053.

Depending on the version of Bitcoin Core, the "warnings" field in the
response to getnetworkinfo is either a single string value or an array
of strings.
We can easily parse those two variants with a custom type that
implements an UnmarshalJSON method.
2024-09-02 15:38:35 +02:00
Oliver Gugger
2b53ed1989
Merge pull request #2230 from wydengyre/rpcclient-signet
rpcclient: signet support
2024-08-26 01:57:00 -06:00
Bruno Garcia
1a1dd2a2b3
btcjson: check if both begin and end are numbers in UnmarshalJSON 2024-08-23 12:22:54 -07:00
Olaoluwa Osuntokun
029e5a3cb5
Merge pull request #2233 from jharveyb/txid_string_check
wire: check TXID length before creating outpoint
2024-08-15 16:03:51 -07:00
Olaoluwa Osuntokun
bda7977a9a
Merge pull request #2235 from AlexsandroRyan/pkg-update-checkmarx-cve
Updated btcd dependency of btcutil to address CVE-2024-34478
2024-08-15 10:42:49 -07:00