13740 Commits

Author SHA1 Message Date
Patrick Lodder
caf26b77ab
fixup p2p-acceptblock and mininode to test disconnects
without partially backporting a new testframework.

- Adds a condition to NodeConn that when asyncore calls handle_read
  without any data, this must be a disconnect and closes the socket
- Adds a little loop in the p2p-acceptblock client that waits for
  the socket to be in a closed state
- Makes expected disconnects non-optional in p2p-acceptblock
- Syncs the test descriptions and outputs with reality
2021-08-17 20:15:30 +02:00
Dakoda Greaves
fb194d7319
p2p-acceptblock: add steps 8, 9 to confirm node disconnects 2021-08-17 20:13:54 +02:00
Patrick Lodder
fe1bca68da
Merge pull request #2457 from ReverseControl/1.14.4-suggested-changes-for-2297
1.14.4 suggested changes for 2297
2021-08-17 09:12:27 +02:00
Escanor Liones
8ee0b0259e [ #2297 ] Implemented suggestions: camel casing as suggested and printing debug messages for invalidated blocks. 2021-08-16 22:51:04 -04:00
p-j01
0ec57cfcba fix: A newly appended block header should not build on an invalid chain 2021-08-16 22:49:23 -04:00
Patrick Lodder
9de15dd687
Merge pull request #2446 from patricklodder/1.14.4-mintxfee-tests
Implements, tests and assures wallet operator ease-of-sovereignty and making 
sure that user-defined fee logic persists through versions in the future by 
fixing and testing -paytxfee

1. There was an override of ANY user-defined value to CWallet::GetMinimumFee

  - Former logic: always override any value with either -mintxfee or 
    -mintxrelayfee, whichever is highest
    
  - Proposed logic in this pull request:
    - if the user specifies a value, only override when it is lower than 
      -mintxfee or -mintxrelayfee - this works because we set any default
      -mintxfee to be the same as -paytxfee, unless the user explicitly 
      sets a -mintxfee.
    - if no value has been specified, use the rate from -mintxfee or 
      -mintxrelayfee, whichever is highest
      
2. Test that the interaction between the wallet parameters -paytxfee and 
   -mintxfee function as intended. This has to be done using rpc tests rather 
   than unit tests because it tests the actual parameters passed to the 
   executables.
   
3. Undoing the override exposed a misconfiguration in the bumpfee.py test, 
   where fees were explicitly set higher, yet ignored in subsequent bumps.
2021-08-16 23:00:43 +02:00
Patrick Lodder
07be86c147
qa: fix bumpfee now that paytxfee works 2021-08-16 00:17:20 +02:00
Patrick Lodder
59f27ca73d
fees: remove careless override of -paytxfee in GetMinimumFee 2021-08-16 00:17:05 +02:00
Patrick Lodder
2370fc5701
qa: add -paytxfee and -mintxfee interaction test
Test that the interaction between the wallet parameters
-paytxfee and -mintxfee function as intended. This has to
be done using rpc tests rather than unit tests because it
tests the actual parameters passed to the executables.
2021-08-16 00:16:51 +02:00
Patrick Lodder
ef260375d1
Merge pull request #2456 from rnicoll/1.14.4-intellij
Added IntelliJ IDEA in .gitignore
2021-08-15 19:13:43 +02:00
Joakim Taule Kartveit
934832844a Added IntelliJ IDEA in .gitignore and removed dot from dogecoin.com link 2021-08-15 16:09:14 +01:00
Ross Nicoll
4782a56f0b
Merge pull request #2453 from patricklodder/1.14.4-fix-gen-seeds
contrib: fix generate-seeds.py to use Dogecoin p2p ports
2021-08-15 08:10:10 +01:00
Ross Nicoll
bee1524723
Merge pull request #2454 from patricklodder/1.14.4-update-seeds
Update fixed seeds for 1.14.4
2021-08-15 08:09:15 +01:00
Patrick Lodder
f45fc26cd9
update seeds for 1.14.4
recreated seeds by selecting peers across 20+ nodes that:

1. Keep up with updates, in this case run 1.14.3 or higher
2. Have NODE_NETWORK set
3. Are not known scanning clients
4. Are connectable
5. Are stable - I ordered nodes by time they have been connected to
   one of my nodes

resulting set is 120 good nodes for mainnet and 20 good nodes for
testnet, serialized into chainparamsseeds.h using the contrib/
scripts.
2021-08-15 04:06:14 +02:00
Patrick Lodder
9569222b7b
contrib: fix generate-seeds.py to use Dogecoin p2p ports 2021-08-15 03:09:45 +02:00
Patrick Lodder
9a14a2f8fb
Merge pull request #2452 from rnicoll/1.14.4-checkpoints
Refresh blockchain checkpoints
2021-08-15 02:27:20 +02:00
Ross Nicoll
5d0769fc7e
Refresh blockchain checkpoints 2021-08-15 00:28:54 +01:00
Patrick Lodder
1374bb47c2
Merge pull request #2450 from xanimo/1.14.4-txn_doublespend
qa: txn_dblspend - fix arithmetic
2021-08-14 21:19:15 +02:00
Ross Nicoll
6336a3a994
Merge pull request #2451 from patricklodder/1.14.4-feefilter-rpc
rpc: add feefilter to peers from getpeerinfo
2021-08-14 09:22:45 +01:00
Ross Nicoll
c49da8b6f4
Merge pull request #2448 from patricklodder/1.14.4-fix-acceptblock
qa: fix p2p-acceptblock
2021-08-14 08:55:33 +01:00
Ross Nicoll
23ba9e1644
Merge pull request #2447 from patricklodder/1.14.4-fix-qt-str-trans
qt: translate all user-exposed strings
2021-08-14 08:39:14 +01:00
Dakoda Greaves
1c32538089 fix arithmetic; adds to standard testing 2021-08-13 19:12:16 -07:00
Patrick Lodder
3c327d0d6a
rpc: add feefilter to peers from getpeerinfo
Exposes information about the feefilter the peer sets to us, so
that we can make better informed decisions when a transaction
does not get relayed.
2021-08-14 03:16:54 +02:00
chromatic
c2a0bd2890 qt: translate more user-exposed strings 2021-08-14 01:56:07 +02:00
Patrick Lodder
4a1975b0e3
fix typo 2021-08-13 23:33:29 +02:00
Patrick Lodder
6aff1141f4
qa: fix p2p-acceptblock
This test failed because the sheer number of blocks required to
trigger the max length of a fork we'd keep, exceed the v4 fork
height on regtest.

- Adapted the blocktools.py miner to mine 0x00620004 blocks as done
  elsewhere too (be it suboptimal, but at least consistent)
- Adapted the test to work with 1440 blocks (Dogecoin limit)
  instead of 288 (Bitcoin limit)
- Made p2p-acceptblock a standard test instead of an extended test
2021-08-13 03:44:02 +02:00
Ross Nicoll
3bf47e73f3
Merge pull request #2437 from michilumin/1.14.4-mintxfee
Adding startup logic where -paytxfee if lower than default, mintxfee is overridden
2021-08-12 20:20:38 +01:00
Ross Nicoll
c9586396d2
Merge pull request #2440 from michilumin/1.14.4-fees-reduced-minimums
fees: Reduce minimum relay fee to 0.001 DOGE
2021-08-12 20:19:31 +01:00
Patrick Lodder
9370db962b
qt: translate all user-exposed strings 2021-08-11 23:09:13 +02:00
Michi Lumin
f8813f8e13 fees: Reduce minimum relay fee to 0.001 DOGE, final change from tx to 0.01 2021-08-11 14:16:01 -06:00
michilumin
57303f1c06 Adding startup logic where -paytxfee if lower than default, implies -mintxfee is also lowered. 2021-08-11 13:44:29 -06:00
Ross Nicoll
6150f6717a
Merge pull request #2439 from rnicoll/1.14.4-dust-limit-type-alt
Use CAmount for amounts
2021-08-09 22:50:31 +01:00
Patrick Lodder
3a5a31c113
Merge pull request #2417 from patricklodder/1.14-serialize-getheaders
Reduce getheaders spam by serializing getheader requests per peer
2021-08-09 20:54:33 +02:00
Ross Nicoll
c42b38ea51
Use CAmount for constant amounts too 2021-08-08 21:41:35 +01:00
Ross Nicoll
672a38cc06
Use CAmount for amounts
Use CAmount rather than unsigned int for amounts for consistency
with other fee rate amounts.

This does change the type from unsigned int to unsigned int64, and
while it is unlikely anyone would need a dust limit higher than
unsigned int, again this ensures the theoretical maximum is in line
with other rates.
2021-08-08 18:36:15 +01:00
Ross Nicoll
5db95e5a5f
Merge pull request #2348 from patricklodder/1.14-cfg-dust-limit
[fees] introduce configurable hard dust limit
2021-08-05 22:21:53 +01:00
Patrick Lodder
2dc1adb7fe
[fees] Express policies in COIN instead of Koinu 2021-08-05 18:24:20 +02:00
Patrick Lodder
4c46af0483
[fees] introduce configurable hard dust limit
Co-authored-by: Ross Nicoll <rnicoll@rnicoll.name>
2021-08-05 18:24:17 +02:00
Patrick Lodder
a88d53be2e
Merge pull request #2415 from rnicoll/1.14.4-rbf-fee
Reduce BIP125 replace by fee increment value
2021-08-04 22:10:44 +02:00
Ross Nicoll
14a2e1ba96
consensus: Fix a rare crash bug
Fix a rare crash bug where no best chain can be activated, and therefore when trying
to find the height of the best chain via the last block triggers a null pointer dereference.
2021-08-04 09:30:02 +01:00
Michi Lumin
1d2380df56 p2p: Reduce BIP125 replace by fee increment value 2021-08-04 09:29:35 +01:00
Ross Nicoll
7ebedc2aa3
Merge pull request #2434 from patricklodder/1.14-activatebestchain-shutdown-fix
bugfix: break ActivateBestChain() differently on shutdown
2021-08-04 09:28:08 +01:00
Ross Nicoll
246a103e9e
Merge pull request #2428 from zachlatta/1.14.4-nixos-build-instructions
Add build and setup instructions for NixOS
2021-08-03 23:35:05 +01:00
Patrick Lodder
0c3d683be4
bugfix: break ActivateBestChain() differently on shutdown
Moves the break in ActivateBestChain() when a node is being shut
down from the beginning of the loop block to the end, allowing
pindexNewTip to be populated with chainActive.Tip() rather than
its initial NULL value. Solves issues when shutting down nodes
while inside the ActivateBestChain loop.
2021-08-04 00:15:33 +02:00
Zach Latta
5c6017aad4 Move shell.nix contents into separate file 2021-08-03 14:46:51 -04:00
xanimo
290faedcc3
tests: mempool_packages.py (#2433)
* Bump fee to 1.0000 from 0.0001 to fix insufficient priority error
2021-08-01 09:36:55 +01:00
Patrick Lodder
7abb81b2ea
Merge pull request #2368 from michilumin/1.14.4-fees
1.14.4 fees backend improvements
2021-07-31 20:58:53 +02:00
Michi Lumin
575f734eec Initial back end framework to separate wallet and relay fees + dust. 2021-07-30 16:07:22 -06:00
Zach Latta
d80ddf3244 Add build and setup instructions for NixOS 2021-07-30 12:09:11 -04:00
Patrick Lodder
6bea578da0
Merge pull request #2426 from xanimo/1.14.4-qa
update qa/README.md to reflect working installation instructions
2021-07-29 02:00:57 +02:00