Andrew Poelstra
26fd4eb181
Merge a9d1b40d53 into merged_master (Bitcoin PR #21415 )
2021-06-27 15:02:35 +00:00
Andrew Poelstra
8c54b98b25
Merge e0bc27a14c into merged_master (Bitcoin PR #21404 )
2021-06-26 22:39:09 +00:00
Andrew Poelstra
14685bfef5
Merge 6c156e49cb into merged_master (Bitcoin PR #18842 )
2021-06-26 14:38:38 +00:00
Andrew Poelstra
b47f3355c7
Merge 8c049fe9af into merged_master (Bitcoin PR #19771 )
2021-06-26 12:47:11 +00:00
Andrew Poelstra
f250da483b
Merge 8e1913ae02 into merged_master (Bitcoin PR #21062 )
2021-06-22 22:39:50 +00:00
Andrew Poelstra
c5a022192f
Merge d7e2401c62 into merged_master (Bitcoin PR #18077 )
2021-06-17 01:59:15 +00:00
Andrew Poelstra
27930edc9c
Merge 4a540683ec into merged_master (Bitcoin PR #20813 )
2021-06-16 14:11:07 +00:00
Andrew Poelstra
a3b6f760ed
Merge e98d1d6740 into merged_master (Bitcoin PR #19425 )
2021-06-11 19:06:47 +00:00
Andrew Poelstra
7a7791e879
Merge 03b1db6114 into merged_master (Bitcoin PR #18766 )
2021-06-11 16:59:19 +00:00
Andrew Poelstra
1521881ad8
Merge 24e4857b29 into merged_master (Bitcoin PR #20494 )
2021-06-10 18:09:55 +00:00
fanquake
ebc4ab721b
refactor: post Optional<> removal cleanups
2021-03-17 14:56:20 +08:00
fanquake
57e980d13c
scripted-diff: remove Optional & nullopt
...
-BEGIN VERIFY SCRIPT-
git rm src/optional.h
sed -i -e 's/Optional</std::optional</g' $(git grep -l 'Optional<' src)
sed -i -e 's/{nullopt}/{std::nullopt}/g' $(git grep -l 'nullopt' src)
sed -i -e 's/ nullopt;/ std::nullopt;/g' $(git grep -l 'nullopt' src)
sed -i -e 's/ nullopt)/ std::nullopt)/g' $(git grep -l 'nullopt' src)
sed -i -e 's/(nullopt)/(std::nullopt)/g' $(git grep -l 'nullopt' src)
sed -i -e 's/ nullopt,/ std::nullopt,/g' $(git grep -l 'nullopt' src)
sed -i -e 's/? nullopt :/? std::nullopt :/g' $(git grep -l 'nullopt' src)
sed -i -e 's/: nullopt}/: std::nullopt}/g' $(git grep -l 'nullopt' src)
sed -i -e '/optional.h \\/d' src/Makefile.am
sed -i -e '/#include <optional.h>/d' src/test/fuzz/autofile.cpp src/test/fuzz/buffered_file.cpp src/test/fuzz/node_eviction.cpp
sed -i -e 's/#include <optional.h>/#include <optional>/g' $(git grep -l '#include <optional.h>' src)
-END VERIFY SCRIPT-
2021-03-15 10:41:30 +08:00
fanquake
3ba2840e7e
scripted-diff: remove MakeUnique<T>()
...
-BEGIN VERIFY SCRIPT-
git rm src/util/memory.h
sed -i -e 's/MakeUnique/std::make_unique/g' $(git grep -l MakeUnique src)
sed -i -e '/#include <util\/memory.h>/d' $(git grep -l '#include <util/memory.h>' src)
sed -i -e '/util\/memory.h \\/d' src/Makefile.am
-END VERIFY SCRIPT-
2021-03-11 13:45:14 +08:00
MarcoFalke
6c156e49cb
Merge #18842 : wallet: Mark replaced tx to not be in the mempool anymore
...
fa4e088cba wallet: Mark replaced tx to not be in the mempool anymore (MarcoFalke)
Pull request description:
The wallet does not mark the replaced tx as out-of-mempool. This causes failures in user scripts, because later RPCs may depend on this state change from `bumpfee`.
For example, the following might fail on current master:
```
txid = sendtoaddress(...)
bumpfee(txid)
abandontransaction(txid) # fails because txid is still marked as "in mempool"
```
Fixes #18831
ACKs for top commit:
meshcollider:
utACK fa4e088cba
ryanofsky:
Code review ACK fa4e088cba , and previous ACK faeedff5c87091fd83d2fb2b29eb49c948363f29 is also still valid in case there's a preference for the original fix
Tree-SHA512: 9858f40f5fb5a43a7b584b5c4268b6befa82e6a84583be5206fe721bcb6c255e8d35479d347d0b9aed72703df49887c02b14ab680e8efdd28b90dd6b93d9439a
2021-03-09 07:54:18 +01:00
MarcoFalke
fa4e088cba
wallet: Mark replaced tx to not be in the mempool anymore
2021-03-07 12:18:15 +01:00
Luke Dashjr
c77de622dd
net: Replace enum CConnMan::NumConnections with enum class ConnectionDirection
2021-03-04 19:54:17 +00:00
Hennadii Stepanov
a39f7336a3
net: Add -natpmp command line option
2021-01-07 18:07:09 +02:00
MarcoFalke
fa0074e2d8
scripted-diff: Bump copyright headers
...
-BEGIN VERIFY SCRIPT-
./contrib/devtools/copyright_header.py update ./
-END VERIFY SCRIPT-
2020-12-31 09:45:41 +01:00
Russell Yanofsky
3fbbb9a640
refactor: Get rid of more redundant chain methods
...
This just drops three interfaces::Chain methods replacing them with other calls.
Motivation for removing these chain methods:
- Need to get rid of findFirstBlockWithTimeAndHeight for #10102 , which doesn't
support overloaded methods
- Followup from
https://github.com/bitcoin/bitcoin/pull/16426#discussion_r412487403
- phantomcircuit comments about findNextBlock test
http://www.erisian.com.au/bitcoin-core-dev/log-2020-06-06.html#l-214
Behavior is not changing in any way here. A TODO comment in
ScanForWalletTransactions was removed, but just because it was invalid (see
https://github.com/bitcoin/bitcoin/pull/19195#discussion_r448020762 ), not
because it was implemented.
2020-12-07 09:09:53 -04:00
Antoine Poinsot
03bfeee957
interface: remove unused estimateSmartFee method from node
...
Co-Authored-by: MarcoFalke <falke.marco@gmail.com>
Signed-off-by: Antoine Poinsot <darosior@protonmail.com>
2020-12-03 12:56:36 +01:00
Andrew Poelstra
ab283556b0
Merge db88db4727 into merged_master (Bitcoin PR #19339 )
...
Changes API for AcceptToMemoryPool to no longer check maximum fee; we remove
this check from interfaces::CChain::testPeginClaimAcceptance. This is fine,
the check never should have been there (this method's job is to notice double
claim attempts and provide a more helpful message to the user; other mempool
failures should be caught later in the `claimrawpegin` logic when we call
`pwallet->commitTransaction` which actually subits to the mempool). It was
only checking fees because the API made it easier to do so than to not.
2020-11-30 15:50:18 +00:00
Andrew Poelstra
1b85209c18
Merge 1769828684 into merged_master (Bitcoin PR #19501 )
...
Adds "verbose" flag to a bunch of RPC that pass through to SendMoney. I also
added it to sendtomainchain and destroyamount.
2020-11-30 02:17:54 +00:00
Andrew Poelstra
7a8f77d7ad
Merge 9e217f5a6f into merged_master (Bitcoin PR #19572 )
2020-11-29 19:44:31 +00:00
Andrew Poelstra
a7602fb56d
Merge 652c45fdbb into merged_master (Bitcoin PR #15454 )
2020-11-29 06:12:28 +00:00
Andrew Poelstra
2a0cf12ecc
Merge 07087051af into merged_master (Bitcoin PR #19556 )
...
Added a method testPeginClaimAcceptance to interfaces::CChain. It is not clear
to me that this is meaningfully different from the existing method broadcastTransaction
(with the `relay` flag set to false so it doesn't actually broadcast), except
that this method returns the TxValidationState, which we display to the user
in the RPC error. Worth revisiting this.
Another nonobvious change was replacing a block of mempool-searching logic
in wallet/rpcwallet.cpp with the single line `pwallet->chain().findCoins(coins)`.
This I stole from the current state of upstream #17211 , our favorite in-progress
PR from which the original logic came.
2020-11-29 01:43:20 +00:00
Andrew Poelstra
d4e8eb56b0
Merge 56d47e19ed into merged_master (Bitcoin PR #19619 )
2020-11-29 00:21:17 +00:00
Andrew Poelstra
81a7362f37
Merge 3ba25e3bdd into merged_master (Bitcoin PR #19848 )
2020-11-28 23:28:08 +00:00
Andrew Poelstra
646aa14168
Merge a0a422c34c into merged_master (Bitcoin PR #19754 )
2020-11-28 22:31:57 +00:00
Andrew Poelstra
4087c88a7e
Merge 269a7ccb27 into merged_master (Bitcoin PR #19099 )
2020-11-28 17:53:38 +00:00
Andrew Poelstra
de97906fad
Merge 91af7ef831 into merged_master (Bitcoin PR #19289 )
2020-11-28 14:31:34 +00:00
Andrew Poelstra
89db65048d
Merge 93ab136a33 into merged_master (Bitcoin PR bitcoin-core/gui#35 )
2020-11-28 14:00:34 +00:00
Andrew Poelstra
ec3c13988a
Merge 6a2ba62685 into merged_master (Bitcoin PR #19779 )
2020-11-28 13:07:39 +00:00
Andrew Poelstra
e10dd69c55
Merge a0e75bd31d into merged_master (Bitcoin PR #15937 )
2020-11-27 20:39:27 +00:00
Andrew Poelstra
b2c4c2b2b4
Merge 1052b09031 into merged_master (Bitcoin PR #19011 )
2020-11-27 17:29:41 +00:00
Andrew Poelstra
54668f0d50
Merge 4b705b1c98 into merged_master (Bitcoin PR #19098 )
2020-11-27 02:59:49 +00:00
Andrew Poelstra
e377f4f773
Merge f4cfa6d019 into merged_master (Bitcoin PR #15935 )
2020-11-26 18:11:36 +00:00
Andrew Poelstra
7cd7baf583
Merge 5f96bce9b7 into merged_master (Bitcoin PR #18923 )
2020-11-26 01:09:24 +00:00
Andrew Poelstra
ceefa62cdb
Merge abdfd2d0e3 into merged_master (Bitcoin PR #19219 )
2020-11-26 01:09:20 +00:00
Andrew Poelstra
9ac0c98505
Merge 7173a3c73b into merged_master (Bitcoin PR #19396 )
2020-11-26 01:09:18 +00:00
Andrew Poelstra
c473bf0bce
Merge bb588669f9 into merged_master (Bitcoin PR #19331 )
2020-11-26 01:09:16 +00:00
Andrew Poelstra
4839db857d
Merge c27330897d into merged_master (Bitcoin PR #18027 )
2020-11-26 01:09:11 +00:00
Andrew Poelstra
235e1f0ec5
Merge 3faf3429e9 into merged_master (Bitcoin PR #19299 )
2020-11-26 01:09:06 +00:00
Andrew Poelstra
440e85cbdb
Merge 371a73e940 into merged_master (Bitcoin PR #19233 )
2020-11-26 01:09:02 +00:00
Andrew Poelstra
3aaeae55ea
Merge f8364df250 into merged_master (Bitcoin PR #19176 )
2020-11-26 01:09:02 +00:00
Andrew Poelstra
067e1c3d95
Merge 0fc6ea216c into merged_master (Bitcoin PR #19096 )
2020-11-26 01:08:59 +00:00
Andrew Poelstra
c8459659ed
Merge 3657aee2d2 into merged_master (Bitcoin PR #18982 )
2020-11-26 01:08:56 +00:00
Andrew Poelstra
f15555c2f6
Merge e4bfd51acc into merged_master (Bitcoin PR #18452 )
2020-11-26 01:08:53 +00:00
Andrew Poelstra
bfa1cef745
Merge f4b603cff6 into merged_master (Bitcoin PR #17993 )
2020-11-26 01:08:53 +00:00
Andrew Poelstra
51965ad1e6
Merge 25ad2c623a into merged_master (Bitcoin PR #18740 )
2020-11-26 01:08:47 +00:00
Andrew Poelstra
d359b993f1
Merge a587f85853 into merged_master (Bitcoin PR #18587 )
2020-11-26 01:08:46 +00:00