Gavin Andresen
0f5954c434
Regression test for ResendWalletTransactions
...
Adds a regression test for the wallet's ResendWalletTransactions function, which uses a new, hidden RPC command "resendwallettransactions."
I refactored main's Broadcast signal so it is passed the best-block time, which let me remove a global variable shared between main.cpp and the wallet (nTimeBestReceived).
I also manually tested the "rebroadcast unconfirmed every half hour or so" functionality by:
1. Running bitcoind -connect=0.0.0.0:8333
2. Creating a couple of send-to-self transactions
3. Connect to a peer using -addnode
4. Waited a while, monitoring debug.log, until I see:
```2015-03-23 18:48:10 ResendWalletTransactions: rebroadcast 2 unconfirmed transactions```
One last change: don't bother putting ResendWalletTransactions messages in debug.log unless unconfirmed transactions were actually rebroadcast.
10 years ago
Alex Morcos
cd3d67cf3b
Fix InvalidateBlock to add chainActive.Tip to setBlockIndexCandidates
10 years ago
Luke Dashjr
1d9b378c30
qa/rpc-tests/wallet: Tests for sendmany
10 years ago
Cozz Lovan
292623adf5
Subtract fee from amount
...
Fixes #2724 and #1570 .
Adds the
automatically-subtract-the-fee-from-the-amount-and-send-whats-left
feature to the GUI and RPC (sendtoaddress,sendmany).
10 years ago
Alex Morcos
88f6c8c365
add RPC test for InvalidateBlock
10 years ago
Suhas Daftuar
1cb2a00cb8
Fix getblocktemplate_proposals test by mining one block
...
This triggers the tested node to no longer be in initial
download, allowing the call to getblocktemplate() to succeed.
10 years ago
Pieter Wuille
819bcf9b99
Add RPC test for DERSIG BIP switchover logic
10 years ago
bikinibabe
ee932025c1
Changed pronouns for correctness and inclusivity
10 years ago
Matt Bogosian
34c61813a4
Fix README link from util.sh -> util.py.
10 years ago
Jonas Schnelli
1a25a7edf8
[QA] fix httpbasic keep-alive test
10 years ago
Jonas Schnelli
1dd8ee72af
improve tests for #5655
10 years ago
Wladimir J. van der Laan
56c1093dae
fix tests for #5655
10 years ago
Jonas Schnelli
84d919974b
[QA] fix zapwallettxes test
...
- remove shell test script and add a python equivalent
10 years ago
Suhas Daftuar
1eb1e65f09
Fix smartfees test for change to relay policy
10 years ago
Pieter Wuille
1c52aad540
Require sufficent priority for relay of free transactions
10 years ago
Jonas Schnelli
59582c8b8d
[REST] add /rest/chaininfos
10 years ago
Jonas Schnelli
12d927a391
RPC test for immature balance
10 years ago
Jonas Schnelli
7a3b83269e
[QA] fix httpbasics RPC test typo
10 years ago
Jonas Schnelli
1340f00200
[RPC-TESTS] ability to run single test manually
...
adds possibility to run ./qa/pull-tester/rpc-tests.sh <TESTNAME>
10 years ago
Michael Ford
78253fcbad
Remove references to X11 licence
10 years ago
Pieter Wuille
f676c80f43
Add /rest/headers
10 years ago
Jonas Schnelli
73351c3686
[REST] /rest/block response with full tx details
...
- rest block request returns full unfolded tx details
- /rest/block/notxdetails/<HASH> returns block where transactions are only represented by its hash
10 years ago
mrbandrews
1577df986e
Port of walletbackup.sh to Python.
10 years ago
Gavin Andresen
34318d7fad
RPC-test based on invalidateblock for mempool coinbase spends
10 years ago
Jonas Schnelli
11d7a7d505
[RPC] add rpc-test for http keep-alive (persistent connections)
10 years ago
Matt Corallo
db0916bd13
Fix missing python2 in rpc-tests
10 years ago
Gavin Andresen
9e56532959
Coinbases-in-mempool regression test
...
Immature coinbase spends are allowed in the memory pool if they can be mined in the next block.
They are not allowed in the memory pool if they cannot be mined in the next block.
This regression test tests those edge cases.
10 years ago
Gavin Andresen
b2d0162ba4
Test resurrecting memory pool transactions during chain re-org
...
Builds on #5316 .
10 years ago
Wladimir J. van der Laan
90f7aa7778
Fix rest.py test after #5376
10 years ago
Jonas Schnelli
01dc2d83f8
[REST] add REST interface tests in rpc-test section
10 years ago
Pieter Wuille
1b91be49f5
Report status of chain tips
10 years ago
Matt Corallo
e3f315a0a5
Fix python usage for arch's broken maintainers
10 years ago
Suhas Daftuar
7e615f5228
Fixed mempool sync after sending a transaction
10 years ago
mrbandrews
e4ef724493
Edited rpc-tests to run python script not shell script.
10 years ago
mrbandrews
189fb526f1
Port of wallet.sh to python (wallet.py).
...
Also included are minor edits to util.py to create a clean blockchain and add a parameter to gather_inputs to specify number of confirmations.
10 years ago
Luke Dashjr
bc6cb4177b
QA RPC tests: Add tests block block proposals
10 years ago
Gavin Andresen
8656dbb095
Port/fix txnmall.sh regression test
...
Ported txnmall.sh to Python, and updated to match
recent transaction malleability changes.
I also modified it so it tests both double-spending
confirmed and unconfirmed (only-in-mempool) transactions.
Renamed to txn_doublespend, since that is really what is
being tested. And told the pull-tester to run both
variations on this test.
10 years ago
Cory Fields
3c30f27f34
travis: disable rpc tests for windows until they're not so flaky
10 years ago
Gavin Andresen
daf03e7c92
RPC tests: create initial chain with specific timestamps
...
Use setmocktime to create the initial block chain with
10-minute-apart-blocks starting 1 Jan 2014.
10 years ago
Bryan Bishop
a7af9839d6
don't override dir() in qa rpc tests
...
Replace "dir" with "dirname" in util.py in qa/rpc-tests/ because "dir"
is the name of a function in python.
10 years ago
Cory Fields
c8b115e20b
travis: temporarily disable the forknotify test
...
It appears to be breaking randomly on Windows
10 years ago
dexX7
5e2dcaebc4
gather_inputs: use correct variable in error message
...
"amount" and "fee" do not exist (anymore?).
10 years ago
Daniel Kraft
2db4c8a24d
Fix node ranges in the test framework.
10 years ago
Cory Fields
7667850dbf
tests: replace the old (unused since Travis) tests with new rpc test scripts
10 years ago
Cory Fields
fa7f8cdc1a
tests: remove old pull-tester scripts
...
They're unused since the switch to Travis
10 years ago
Cory Fields
5122ea7190
tests: fix forknotify.py on windows
...
Windows interprets 'foo.txt' as a literal filename while "foo.txt" is treated
as expected.
10 years ago
Cory Fields
7a41614aa2
tests: allow rpc-tests to get filenames for bitcoind and bitcoin-cli from the environment
...
This will allow for windows tests to run with bitcoind.exe and bitcoin-cli.exe
10 years ago
Gavin Andresen
9f87325b22
Start with tidier cache directories
...
Remove more files from the cached, 200-block-chain data directories.
10 years ago
Gavin Andresen
ec01243c14
--tracerpc option for regression tests
...
Run tests with --tracerpc and all RPC calls will dump to the console.
Very helpful for debugging.
10 years ago
Daniel Kraft
2290ed01bc
Work around #5113 .
10 years ago