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
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
Alexsandro
913f95b2b2
Updated github.com/btcsuite/btcd to address CVE-2024-34478
...
synchronize dependencies
2024-08-15 11:16:41 -03:00
Jonathan Harvey-Buschel
ee7cf5e564
wire: check TXID length before creating outpoint
2024-08-14 16:29:08 -04:00
Matt Leon
b00cec6d39
rpcclient: signet support
2024-08-13 10:15:43 -04:00
lencap
8791081be3
chore: fix some comments
...
Signed-off-by: lencap <techgeek@189.cn>
2024-08-09 16:51:11 +08:00
Olaoluwa Osuntokun
97400aa23e
Merge pull request #2225 from Crypt-iQ/statusbytes_08062024
...
blockchain: copy utxo status bytes to avoid UB
2024-08-08 18:41:45 -07:00
Eugene Siegel
3eda1a58a2
blockchain: copy utxo status bytes to avoid UB
...
It is undefined behavior if we directly use the value from a Get
call after the transaction has completed.
2024-08-06 11:49:23 -04:00
Olaoluwa Osuntokun
b161cd6a19
Merge pull request #2218 from guggero/btcec-fix
...
mod+rpcserver: bump to latest version of btcec
2024-07-23 15:46:50 -07:00
Oliver Gugger
cefeeaa6b6
mod+rpcserver: bump to latest version of btcec
2024-07-23 10:57:08 +02:00
linghuying
ff2e03e112
chore: fix some comments for struct field ( #2214 )
...
Signed-off-by: linghuying <1599935829@qq.com>
2024-07-16 09:02:23 -04:00
Olaoluwa Osuntokun
2134387ba8
Merge pull request #2208 from kcalvinalvin/2024-07-01-close-blockfiles
...
ffldb: close block files
2024-07-12 16:55:03 -07:00
zhiqiangxu
e5d15fddb9
btcec/ecdsa: remove error return value for SignCompact ( #2211 )
2024-07-10 08:43:15 -04:00