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 #4

Open
wants to merge 884 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
884 commits
Select commit Hold shift + click to select a range
24d4217
wire/msgtx: use readTxOutBuf in txn serialization
cfromknecht Jan 25, 2020
3bfd0c6
wire/msgtx: introduce optimized writeTxWitnessBuf
cfromknecht Jan 25, 2020
3a91303
wire/msgtx: use writeTxWitnessBuf in txn serialization
cfromknecht Jan 25, 2020
0cf8c19
wire/msgtx: use readScriptBuf in txn serialization
cfromknecht Jan 25, 2020
aa769e3
wire/bench_test: introduce optimized readBlockHeaderBuf
cfromknecht Jan 25, 2020
3cee06e
wire/blockheader: introduce optimized writeBlockHeaderBuf
cfromknecht Jan 25, 2020
674c220
wire/invvect: add optimized readInvVectBuf and writeInvVectBuf
cfromknecht Jan 25, 2020
4ebc651
wire/msggetblocks: optimize by reusing small buffer
cfromknecht Jan 25, 2020
ee1f807
wire/msgblock: use only one small buffer per block encode/decode
cfromknecht Jan 25, 2020
d8e0817
wire/msgblock: optimize DeserializeTxLoc by reusing small buffers
cfromknecht Jan 25, 2020
c0d35e6
wire/msggetheaders: optimize serialization by reusing small buffers
cfromknecht Jan 25, 2020
83675cb
wire/msgheaders: optimize serialization by reusing small buffers
cfromknecht Jan 25, 2020
d042fe0
wire/msggetcfheaders: use single small buffer for encode/decode
cfromknecht Jan 25, 2020
1c525db
wire/msgcfheaders: optimize encode/decode by using one small buffer
cfromknecht Jan 25, 2020
1990555
wire/msggetcfcheckpt: optimize by removing read/writeElement
cfromknecht Jan 25, 2020
f37f475
wire/msgcfcheckpt: optimize serialization by reusing small buffers
cfromknecht Jan 25, 2020
2383a04
wire/msginv: optimize by reusing small buffers
cfromknecht Jan 25, 2020
d6594da
wire/msggetdata: optimize serialization by reusing small buffers
cfromknecht Jan 25, 2020
ddeba60
wiree/msggetcfilters: optimize serialization by reusing small buffers
cfromknecht Jan 25, 2020
834febb
wire/msgcfilter: optimize serialization by reusing small buffers
cfromknecht Jan 25, 2020
efcf964
wire/msgnotfound: optimize serialization by reusing small buffers
cfromknecht Jan 25, 2020
1cd5e02
wire/invvect: remove unused readInvVect and writeInvVect
cfromknecht Jan 25, 2020
57daac3
wire/common: add optimized writeVarStrBuf an readVarStrBuf
cfromknecht Jan 25, 2020
dc4fbb0
wire/msgreject: optimize serialization by reusing small buffers
cfromknecht Jan 25, 2020
8bf07cc
wire/netaddress: add optimiezed read/writeNetAddressBuf
cfromknecht Jan 25, 2020
7207967
wire/msgmerkleblock: optimize serialization by reusing small buffers
cfromknecht Jan 25, 2020
3698f2d
wire/msgping: remove usage for read/writeElement
cfromknecht Jan 25, 2020
80ae5d3
wire/msgpong: remove usage of read/writeElement
cfromknecht Jan 25, 2020
da89ed6
wire/msgtx: remove unused writeTxWitness
cfromknecht Jan 25, 2020
f0184e5
wire/msgtx: remove unused writeTxIn
cfromknecht Jan 25, 2020
e0fa866
wire/msgtx: remove unused readTxIn
cfromknecht Jan 25, 2020
4cc4f76
wire/msgtx: remove unused readScript
cfromknecht Jan 25, 2020
2e6eefc
wire/msgtx: remove unused read/writeOutPoint
cfromknecht Jan 25, 2020
d7396dc
wire/msgtx: use tx-level script slab
cfromknecht Jan 25, 2020
8c4da83
wire/msgblock+msgtx: user block-level script slab
cfromknecht Jan 25, 2020
1f2dfa2
blockchain: Add mapslice
kcalvinalvin May 16, 2023
35c4268
blockchain: Add tfFresh to txoFlags
kcalvinalvin May 16, 2023
27cf702
blockchain: Add memoryUsage() method on UtxoEntry
kcalvinalvin May 16, 2023
fc65744
blockchain: Add utxoStateConsistency read and write functions
kcalvinalvin May 16, 2023
d86e79e
blockchain: Refactor dbPutUtxoView
kcalvinalvin Jul 21, 2023
953d62a
blockchain: Return early on nil utxo view in dbPutUtxoView
kcalvinalvin Jul 21, 2023
bcd8f54
blockchain: Require utxoBucket in dbFetchUtxoEntry
kcalvinalvin May 16, 2023
053ef33
blockchain: Refactor fetchInputUtxos
kcalvinalvin May 18, 2023
3c11e48
blockchain: Add utxocache
kcalvinalvin May 16, 2023
16cd44f
blockchain, netsync, main, cmd/addblock: Use utxocache
kcalvinalvin May 16, 2023
d387d16
database/ffldb: make PruneBlocks atomic
kcalvinalvin Aug 25, 2023
dd37dfa
blockchain: add flushNeededAfterPrune
kcalvinalvin Aug 25, 2023
ebc93a3
blockchain: flush the utxo cache on prune if needed
kcalvinalvin Aug 25, 2023
84bdd01
ffldb: change export_test.go to export.go
kcalvinalvin Oct 13, 2023
26b2e9d
blockchain: add test for InitConsistentState
kcalvinalvin Oct 15, 2023
87a81f1
blockchain: address nit comments
kcalvinalvin Dec 13, 2023
941e42c
Merge pull request #1955 from kcalvinalvin/utxocache-original
Roasbeef Dec 19, 2023
4c2ce6d
Merge pull request #2072 from Roasbeef/chainhash-v-1-1-0-btcutil
Roasbeef Dec 19, 2023
b2f340d
fix: enhance code comments (#2074)
threewebcode Dec 19, 2023
4126760
btcutil/psbt: update to btcutil btcutil/v1.1.4
Roasbeef Dec 19, 2023
c3c3545
multi: update main package to chainhash/v1.1.0, use optimized dsha256
Roasbeef Dec 19, 2023
adfb641
txscript: use DoubleHashRaw to write directly crypto.Hash for segwit …
Roasbeef Dec 19, 2023
046a701
txscript: use DoubleHashRaw for segwit sighash single calc
Roasbeef Dec 19, 2023
19008ed
txscript: use a single shared scratch buffer in segwit sighash calc
Roasbeef Dec 19, 2023
0d666ff
Merge pull request #2075 from Roasbeef/btcutil-psbt-update-dec-2023
Roasbeef Dec 19, 2023
4af0ca8
doc: correct comments
bodhi-crypo Dec 20, 2023
83605e4
btcutil: reuse serialized tx during TxHash
kcalvinalvin Aug 21, 2023
6e7680a
rpctest: fix formatting
guggero Dec 15, 2023
323cf1e
rpctest: fix test node directory
guggero Dec 15, 2023
d33ac28
rpctest: add more context to errors
guggero Dec 15, 2023
dd5f3bd
rpctest: make test TCP ports unique per process
guggero Dec 15, 2023
7644d14
blockchain: fix compilation issues with 32bit systems
guggero Dec 21, 2023
8766bfd
Merge pull request #2071 from guggero/integration-harness-fixes
guggero Dec 22, 2023
56de9ca
btcutil: align new serialization caching logic w/ codebase style
Roasbeef Dec 29, 2023
e102a81
btcutil: add benchmarks for Hash + WitnessHash
Roasbeef Dec 29, 2023
b0e9636
wire: consistently use defer for returning scratch buffers
Roasbeef Dec 29, 2023
790c570
Merge pull request #2081 from Roasbeef/dont-serialize-tx-for-txhash
Roasbeef Dec 29, 2023
16684f6
Merge pull request #2073 from Roasbeef/wire-opts
Roasbeef Dec 29, 2023
d64de4a
build: update to btcutil v1.1.5
Roasbeef Dec 29, 2023
bf23715
btcd: add SECURITY.md
Roasbeef Dec 31, 2023
3c24785
chaincfg: update mainnet block hashes
Roasbeef Dec 29, 2023
8d2ab63
build: bump version to btcd v0.24
Roasbeef Dec 29, 2023
4ec8f01
rpcclient: fix race condition in `doDisconnect`
Roasbeef Dec 31, 2023
b1b9420
Merge pull request #2082 from btcsuite/btcd-24
Roasbeef Dec 31, 2023
e307ad1
blockchain: set the lastflushtime when setting the lastflushhash
kcalvinalvin Jan 3, 2024
a4df044
Fix some typos (#2085)
Thabokani Jan 3, 2024
7fdd92c
docs: fix typo
vuittont60 Jan 9, 2024
048a7ef
database: fix typo
vuittont60 Jan 9, 2024
7df4651
btcutil: fix typo
vuittont60 Jan 9, 2024
6ed54f3
btcec: fix typo
vuittont60 Jan 9, 2024
91cdf0d
Merge pull request #2098 from vuittont60/master
guggero Jan 9, 2024
44abf0a
gitignore: ignore vim files
yyforyongyu Jan 4, 2024
2ad8026
mempool: add new method `checkMempoolAcceptance`
yyforyongyu Nov 3, 2023
ca4261f
btcjson: add `TestMempoolAcceptCmd`
yyforyongyu Nov 3, 2023
889cdb4
multi: add more bitcoind versions to the `BackendVersion`
yyforyongyu Jan 5, 2024
c7e4028
rpcclient: support `testmempoolaccept` for `bitcoind`
yyforyongyu Nov 3, 2023
4842b23
mempool+rpcserver: add interface `TxMempool`
yyforyongyu Nov 29, 2023
6c9f7fe
btcd: add new RPC method `testmempoolaccept`
yyforyongyu Nov 4, 2023
ef54c49
multi: map `btcd` mempool acceptance errors to bitcoind's `testmempoo…
yyforyongyu Dec 5, 2023
c104e72
rpctest: add itest for `testmempoolaccept`
yyforyongyu Nov 29, 2023
8817ebd
integration: print logs to console
yyforyongyu Dec 5, 2023
fbe65bf
gomod: run `go mod tidy` for all modules
yyforyongyu Nov 29, 2023
17fdc52
Merge pull request #2053 from yyforyongyu/testmempoolaccept
Roasbeef Jan 16, 2024
e8a5a55
rpcclient: make sure batch requests are GCed
yyforyongyu Jan 19, 2024
9cda0f7
wire: add `Copy` method to `MsgBlock`
yyforyongyu Jan 21, 2024
c17cf80
netsync: don't update mempool/fee estimator unless we're synced up
kcalvinalvin Jan 22, 2024
62e6af0
Merge pull request #2105 from yyforyongyu/fix-batch-mem-leak
Roasbeef Jan 23, 2024
2a55ff4
refactor: add `make help` command that describes goals
Halimao Jan 22, 2024
8e53942
Merge pull request #2107 from Halimao/refactor/make-help
Roasbeef Jan 24, 2024
13152b3
Merge pull request #2089 from kcalvinalvin/2024-01-03-add-last-flush-…
Roasbeef Jan 24, 2024
c4b1448
feat: Expose newFutureError for developer friendliness
devlzcode Jan 26, 2024
069a0ec
Added 'include_unsafe' option to FundRawTransaction
nikicat Feb 5, 2024
8836219
blockchain: return error in db.View instead of t.Fatal
kcalvinalvin Feb 16, 2024
a0c9e3b
blockchain: add case for pruning stale blocks
kcalvinalvin Feb 16, 2024
5a91ea2
blockchain_test, fullblocktests: add test to check for utxo
kcalvinalvin Feb 21, 2024
d55c55a
Merge pull request #2119 from nikicat/nb/include-unsafe
Roasbeef Feb 22, 2024
5b6d265
Merge pull request #2108 from kcalvinalvin/2024-01-22-dont-update-mem…
Roasbeef Feb 27, 2024
9ea2eea
Merge pull request #2112 from devlzcode/expose-newfutureerror
Roasbeef Feb 27, 2024
3d1150a
blockchain: always relock chainLock for subscription callbacks
kcalvinalvin Feb 27, 2024
dd31767
btcjson: add new command `GetTxSpendingPrevOutCmd`
yyforyongyu Feb 23, 2024
72bbdd5
rpcserver+mempool: implement `gettxspendingprevout` for `btcd`
yyforyongyu Feb 23, 2024
5f71df1
rpcclient: track bitcoind version 24.0.0
yyforyongyu Feb 23, 2024
a033b0d
rpcclient+integration: add new method `GetTxSpendingPrevOut`
yyforyongyu Feb 23, 2024
0d52a89
rpcclient: handle backend versioning in one file
yyforyongyu Feb 23, 2024
9e6070a
rpcclient: start tracking `btcd` version
yyforyongyu Feb 23, 2024
4cf49bd
multi: turn `BackendVersion` into an interface
yyforyongyu Feb 23, 2024
34721f0
rpcclient: replace `ErrBitcoindVersion` with `ErrBackendVersion`
yyforyongyu Feb 27, 2024
0d4ed16
btcd: increase version number to `0.24.1`
yyforyongyu Feb 28, 2024
1a2b599
Merge pull request #2125 from yyforyongyu/add-gettxspendingprevout
Roasbeef Mar 1, 2024
f9da338
addrmgr: fix intermittent addrmanager_internal_test bug
kcalvinalvin Mar 5, 2024
f2caa8f
blockchain: don't rely on BlockHeightByHash for prune height
kcalvinalvin Feb 15, 2024
a254998
blockchain: change reorg utxo cache behavior
kcalvinalvin Feb 20, 2024
78b158d
blockchain: get rid of database as an argument in fetchInputUtxos
kcalvinalvin Mar 5, 2024
99846b0
blockchain: remove unused fetchUtxosMain()
kcalvinalvin Mar 5, 2024
a4f4470
Merge pull request #2131 from kcalvinalvin/2024-03-05-fix-intermitten…
Roasbeef Mar 5, 2024
8d1aa01
blockchain: add another mapslice duplicate entry case
kcalvinalvin Mar 7, 2024
059a668
blockchain: check all the maps first before adding an entry
kcalvinalvin Mar 7, 2024
078815b
blockchain: remove utxoview from the argument in connectBlock
kcalvinalvin Mar 7, 2024
9d2184e
Add check for maximum signature length in ecdsa.ParseDERSignature
SulaimanAminuBarkindo Mar 7, 2024
447c95c
Merge pull request #2122 from kcalvinalvin/2024-02-15-dont-rely-on-he…
Roasbeef Mar 9, 2024
b66f5b8
multi: fix ioutil deprecated function
theedtron Mar 9, 2024
e63bf03
Merge pull request #2123 from kcalvinalvin/2024-02-15-no-utxocache-lo…
Roasbeef Mar 9, 2024
8ed234b
Merge pull request #2134 from kcalvinalvin/2024-03-07-make-duplicate-…
Roasbeef Mar 9, 2024
f0ec9fb
Merge pull request #2128 from kcalvinalvin/2024-02-27-no-panic-for-su…
Roasbeef Mar 9, 2024
aee2705
build: bump version to v0.24.2-beta.rc1
Roasbeef Mar 9, 2024
36683e0
rpcclient: define specific errors for chain backends
yyforyongyu Mar 14, 2024
8abf969
rpcserver: return the plain reject reason from `btcd`
yyforyongyu Mar 14, 2024
2fc99e0
Merge pull request #2138 from yyforyongyu/error-matching
guggero Mar 18, 2024
a90d3d9
Merge pull request #2135 from SulaimanAminuBarkindo/improved-der-sign…
Roasbeef Mar 18, 2024
8b2f43e
Merge pull request #2136 from Roasbeef/btcd-24-0-2-rc1
Roasbeef Mar 18, 2024
2a225e9
wire: add method TxID to MsgTx
ffranr Nov 6, 2023
e39d2eb
Merge pull request #2055 from ffranr/add-msgtx-txid
guggero Mar 25, 2024
75fe7e4
wire: make witnessToHex a TxWitness method called ToHexStrings
ffranr Jun 9, 2023
3cb9f60
fix typos (#2100)
mattn Mar 25, 2024
6ae24a0
mining: remove trailing continue
zhiqiangxu Jan 4, 2024
429d00f
Merge pull request #2091 from zhiqiangxu/rm_trailing_continue
guggero Mar 26, 2024
a03259b
Merge pull request #1991 from ffranr/add-json-support
guggero Mar 26, 2024
bbb6967
btcclient+btcjson: feeRate to BTC/kvB
YusukeShimizu Mar 21, 2024
80b27f5
btcclient+btcjson: add type alias for BTC/kvB
YusukeShimizu Mar 23, 2024
95330bc
chore: fix some comments (#2146)
xiaoxiangxianzi Mar 27, 2024
9851d96
chore: fix typos
xiaoxianBoy Mar 29, 2024
31647e4
btcec: add missing doc comments
ffranr Apr 2, 2024
665eeb5
btcec: add new type `SerializedKey`
ffranr Apr 2, 2024
ae55336
Merge pull request #2142 from YusukeShimizu/feeRate-BTCkvB
Roasbeef Apr 3, 2024
c9c8795
blockchain: add Equals method to blockNode
kcalvinalvin Apr 8, 2024
bc6396d
blockchain: Add IsAncestor method to blockNode
kcalvinalvin Dec 19, 2022
92b24d2
Merge pull request #2150 from xiaoxianBoy/fix-typos
Roasbeef Apr 10, 2024
e4b32e0
Merge pull request #2156 from ffranr/add-pubkey-serialized-type
Roasbeef Apr 10, 2024
5d50f7c
Merge pull request #2153 from kcalvinalvin/2024-04-02-add-is-ancestor
Roasbeef Apr 10, 2024
2f4ff84
fix some typos and make OP_DATA_20 explicit in comment (#2080)
zhiqiangxu Apr 10, 2024
9f93dc1
chore: fix function names in comment (#2163)
goodfirm Apr 10, 2024
64c9011
Update developer_resources.md (#2158)
youngxhui Apr 10, 2024
569155b
doc: fix config documentation for `AgentWhitelist` (#2140)
youngjoon-lee Apr 10, 2024
597b68c
blockchain, workmath: refactor functions to workmath package
kcalvinalvin Apr 2, 2024
337d7f6
fullblocktests, testhelper: refactor out spendableOut
kcalvinalvin Apr 2, 2024
d4644df
fullblocktests, testhelper: move solveBlock to testhelper
kcalvinalvin Apr 2, 2024
62790ac
fullblocktests, testhelper: move opTrueScript and lowFee to testhelper
kcalvinalvin Apr 2, 2024
9093243
fullblocktests, testhelper: move uniqueOpReturnScript to testhelper
kcalvinalvin Apr 2, 2024
59c7d10
fullblocktests, testhelper: move standardCoinbaseScript to testhelper
kcalvinalvin Apr 2, 2024
8ab27b9
fullblocktests, testhelper: move createCoinbaseTx to testhelper
kcalvinalvin Apr 2, 2024
5df1437
fullblocktests, testhelper: move createSpendTx to testhelper
kcalvinalvin Apr 2, 2024
ea39fe0
blockchain: add block generating functions in test code
kcalvinalvin Apr 2, 2024
f93f850
release: add darwin-arm64 to target binaries (#2173)
kcalvinalvin Apr 22, 2024
f1bded4
chaincfg: update dnsseeds (#2174)
kcalvinalvin Apr 23, 2024
126b0ec
chore: fix some typos in comments (#2164)
oftenoccur Apr 26, 2024
6b197d3
chore: fix some function names (#2180)
MarkDaveny Apr 29, 2024
635ae68
blockchain: Add InvalidateBlock() method to BlockChain
kcalvinalvin Apr 2, 2024
689ac6b
blockchain: remove trailing ":" and space on utxocache log
kcalvinalvin May 1, 2024
d65999e
main: add logging if the node is pruned
kcalvinalvin May 1, 2024
2492b01
btcutil/bech32: Added DecodeNoLimitWithVersion
MarcoEzekiel May 9, 2024
04469e6
txscript: make OP_CODESEPARATOR non-standard in non-segwit scripts
ProofOfKeags Apr 10, 2024
da2f3b1
mempool: make txn's below 65 non-witness bytes non-standard
ProofOfKeags Apr 10, 2024
c4ed92f
Merge pull request #2178 from ProofOfKeags/standardness-cleanup
Roasbeef May 21, 2024
b039ee6
Merge pull request #2182 from kcalvinalvin/2024-05-01-fix-logs
Roasbeef May 22, 2024
c467725
Merge pull request #2155 from kcalvinalvin/2024-04-02-invalidate-block
Roasbeef May 22, 2024
d2d286f
Merge pull request #2186 from MarcoEzekiel/DecodeNoLimitVersioned
guggero May 24, 2024
cccaa5f
refactor: specify strconv.ParseFloat bitsize to 64
lilasxie Jun 3, 2024
de41825
Merge pull request #2062 from lilasxie/refactor/parsefloat
guggero Jun 3, 2024
eabc9bf
blockchain: Refactor reorganizeChain to exclude verification
kcalvinalvin Apr 30, 2024
52a8a2a
blockchain: Add ReconsiderBlock to BlockChain
kcalvinalvin Apr 30, 2024
588b2e5
fix: typo (#2184)
yosuzzy Jun 19, 2024
976cbeb
chore: fix some comments (#2191)
VitalikButerinEth Jun 19, 2024
11bd614
Fix struct names (#2169)
coderwander Jun 19, 2024
cd5e5ba
Merge pull request #2196 from Crypt-iQ/2181_eugene
Roasbeef Jun 19, 2024
1cb4d3a
rpcclient, integration: Add invalidateblock and reconsiderblock
kcalvinalvin Jan 9, 2023
0aa80ea
main: Add invalidateblock and reconsiderblock rpc commands
kcalvinalvin Jan 3, 2023
93e7291
Merge pull request #2197 from Crypt-iQ/2183_eugene
Roasbeef Jun 20, 2024
cc4b27c
build: bump version to v0.24.2-beta
Roasbeef Jun 20, 2024
f6db48a
Merge pull request #2201 from Roasbeef/v-0-24-2
guggero Jun 21, 2024
4bff778
psbt: decode keytype as compact size
guggero Jun 25, 2024
cc26860
rpcclient: update error str to match both versions (#2205)
yyforyongyu Jun 25, 2024
b2eec96
Merge pull request #2206 from guggero/psbt-serialization-fix
guggero Jun 26, 2024
1396690
Sending RPC requests through unix sockets (#2168)
robertmin1 Jun 26, 2024
d881c68
Fix the btcctl uptime command
cec489 Jun 27, 2024
4712e20
ffldb: throw error when attempting to delete an open file
kcalvinalvin Jul 1, 2024
8b5f2aa
ffldb: add check for deleting files that are open
kcalvinalvin Jul 1, 2024
8ed8ef1
ffldb: refactor out file close code into its own method
kcalvinalvin Jul 1, 2024
c9fae1a
ffldb: close block files before deleting them
kcalvinalvin Jul 1, 2024
e5d15fd
btcec/ecdsa: remove error return value for SignCompact (#2211)
zhiqiangxu Jul 10, 2024
2134387
Merge pull request #2208 from kcalvinalvin/2024-07-01-close-blockfiles
Roasbeef Jul 12, 2024
ff2e03e
chore: fix some comments for struct field (#2214)
linghuying Jul 16, 2024
cefeeaa
mod+rpcserver: bump to latest version of btcec
guggero Jul 23, 2024
b161cd6
Merge pull request #2218 from guggero/btcec-fix
Roasbeef Jul 23, 2024
3eda1a5
blockchain: copy utxo status bytes to avoid UB
Crypt-iQ Aug 6, 2024
97400aa
Merge pull request #2225 from Crypt-iQ/statusbytes_08062024
Roasbeef Aug 9, 2024
8791081
chore: fix some comments
lencap Aug 9, 2024
b00cec6
rpcclient: signet support
wydengyre Aug 13, 2024
ee7cf5e
wire: check TXID length before creating outpoint
jharveyb Aug 14, 2024
913f95b
Updated github.com/btcsuite/btcd to address CVE-2024-34478
AlexsandroRyan Aug 15, 2024
bda7977
Merge pull request #2235 from AlexsandroRyan/pkg-update-checkmarx-cve
Roasbeef Aug 15, 2024
029e5a3
Merge pull request #2233 from jharveyb/txid_string_check
Roasbeef Aug 15, 2024
1a1dd2a
btcjson: check if both begin and end are numbers in `UnmarshalJSON`
brunoerg Aug 23, 2024
2b53ed1
Merge pull request #2230 from wydengyre/rpcclient-signet
guggero Aug 26, 2024
ed879ea
btcjson: turn warnings into StringOrArray type
guggero Sep 2, 2024
67b8efd
Merge pull request #2245 from guggero/getnetworkinfo-warnings
Roasbeef Sep 21, 2024
35df801
Formatting code with gofmt
huochexizhan Sep 25, 2024
e9b505d
Merge pull request #2255 from huochexizhan/master
guggero Oct 8, 2024
b4afc08
Merge pull request #2228 from lencap/master
Roasbeef Oct 8, 2024
019988b
multi: fix typos
omahs Oct 8, 2024
433781a
multi: fix typos
threewebcode Oct 8, 2024
b513ac2
docs: correct link to redirect to btcutil docs
sanrinconr Oct 8, 2024
ee68dc6
btcec+mempool: delete minor unreachable code caused by t.Fatal
Abirdcfly Oct 8, 2024
44c874f
rpcclient: add http timeout
ziggie1984 Oct 10, 2024
24eb815
Merge pull request #2256 from ziggie1984/timeout-https-client
guggero Oct 11, 2024
684d64a
Add support for wtxidrelay message. (#2272)
marcopeereboom Nov 6, 2024
10ef9cc
main: add flag to write execution traces
kcalvinalvin Aug 6, 2024
e9d95ee
Merge pull request #2223 from kcalvinalvin/2024-08-06-execution-trace…
Roasbeef Nov 20, 2024
48c0295
wire, peer: fix broken ibd
kcalvinalvin Nov 29, 2024
25c804f
Merge pull request #2281 from kcalvinalvin/2024-11-29-fix-ibd-not-wor…
Roasbeef Dec 3, 2024
814a1fc
rpctest: make sure to `WaitForShutdown`
yyforyongyu Nov 26, 2024
42d6eba
Fix non-root hosts failing on resolving DNS
same-id Oct 27, 2024
ec0b90d
Merge pull request #2269 from same-id/fix-non-root-hosts
Roasbeef Dec 5, 2024
e646d43
Merge pull request #2277 from yyforyongyu/fix-shutdown-itest
Roasbeef Dec 10, 2024
db5318b
rpcclient: safe read and write to batch
ynewmann Nov 28, 2024
b1b1e95
Merge pull request #2273 from ynewmann/fix/batch-data-race
guggero Dec 18, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
The diff you're trying to view is too large. We only load the first 3000 changed files.
24 changes: 24 additions & 0 deletions .github/workflows/Dockerfile
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# GitHub action dockerfile
# Requires docker experimental features as buildx and BuildKit so not suitable for developers regular use.
# https://docs.docker.com/develop/develop-images/build_enhancements/#to-enable-buildkit-builds

###########################
# Build binaries stage
###########################
FROM --platform=$BUILDPLATFORM golang:1.17.8-alpine3.15 AS build
ADD . /app
WORKDIR /app
# Arguments required to build binaries targetting the correct OS and CPU architectures
ARG TARGETOS TARGETARCH
# Actually building the binaries
RUN GOOS=$TARGETOS GOARCH=$TARGETARCH go install -v . ./cmd/...

###########################
# Build docker image stage
###########################
FROM alpine:3.15
COPY --from=build /go/bin /bin
# 8333 Mainnet Bitcoin peer-to-peer port
# 8334 Mainet RPC port
EXPOSE 8333 8334
ENTRYPOINT ["btcd"]
52 changes: 52 additions & 0 deletions .github/workflows/dimagespub.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
name: Docker images build and publish

on:
push:
tags:
- v*
# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

env:
REGISTRY: ghcr.io
IMAGE_NAME: ${{ github.repository }}
# Build for default OS, linux, and common CPU architectures
# Reference https://github.com/docker/setup-buildx-action#quick-start
TPLATFORMS: linux/amd64,linux/arm64,linux/arm,linux/386

jobs:
build-push:
runs-on: ubuntu-latest
permissions:
contents: read
packages: write

steps:
- name: Checkout repository
uses: actions/checkout@v2

- name: Docker Setup Buildx
id: buildx
uses: docker/setup-buildx-action@94ab11c41e45d028884a99163086648e898eed25

- name: Log in to the Container registry
uses: docker/login-action@f054a8b539a109f9f41c372932f1ae047eff08c9
with:
registry: ${{ env.REGISTRY }}
username: ${{ github.actor }}
password: ${{ secrets.GITHUB_TOKEN }}

- name: Extract metadata (tags, labels) for Docker
id: meta
uses: docker/metadata-action@98669ae865ea3cffbcbaa878cf57c20bbf1c6c38
with:
images: ${{ env.REGISTRY }}/${{ env.IMAGE_NAME }}

- name: Build and push Docker images
uses: docker/build-push-action@ac9327eae2b366085ac7f6a2d02df8aa8ead720a
with:
file: .github/workflows/Dockerfile
labels: ${{ steps.meta.outputs.labels }}
platforms: ${{ env.TPLATFORMS }}
push: true
tags: ${{ steps.meta.outputs.tags }}
87 changes: 87 additions & 0 deletions .github/workflows/go.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,87 @@
name: Build and Test
on: [push, pull_request]

env:
# go needs absolute directories, using the $HOME variable doesn't work here.
GOCACHE: /home/runner/work/go/pkg/build
GOPATH: /home/runner/work/go
GO_VERSION: 1.17.5

jobs:
build:
name: Build
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}

- name: Check out source
uses: actions/checkout@v2

- name: Build
run: make build

test-cover:
name: Unit coverage
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}

- name: Check out source
uses: actions/checkout@v2

- name: Test
run: make unit-cover

- name: Send top-level coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: coverage.txt
flag-name: btcd
parallel: true

- name: Send btcec
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: btcec/coverage.txt
flag-name: btcec
parallel: true

- name: Send btcutil coverage
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: btcutil/coverage.txt
flag-name: btcutil
parallel: true

- name: Send btcutil coverage for psbt package
uses: shogo82148/actions-goveralls@v1
with:
path-to-profile: btcutil/psbt/coverage.txt
flag-name: btcutilpsbt
parallel: true

- name: Notify coveralls all reports sent
uses: shogo82148/actions-goveralls@v1
with:
parallel-finished: true

test-race:
name: Unit race
runs-on: ubuntu-latest
steps:
- name: Set up Go
uses: actions/setup-go@v2
with:
go-version: ${{ env.GO_VERSION }}

- name: Check out source
uses: actions/checkout@v2

- name: Test
run: make unit-race
20 changes: 20 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,3 +32,23 @@ _cgo_export.*
_testmain.go

*.exe

# Code coverage files
profile.tmp
profile.cov
coverage.txt
btcec/coverage.txt
btcutil/coverage.txt
btcutil/psbt/coverage.txt

# vim
*.swp
*.swo
/.vim

# Binaries produced by "make build"
/addblock
/btcctl
/btcd
/findcheckpoint
/gencerts
19 changes: 0 additions & 19 deletions .travis.yml

This file was deleted.

Loading