zcashd/qa/rpc-tests/test_framework
zkbot 6ee75b3b7b Auto merge of #2014 - arcalinea:test-prioritisetransaction, r=arcalinea
Test prioritisetransaction

After talking with @str4d about #1884 , I wrote a test for prioritisetransaction. It uses small blocks (11kb), and checks whether a transaction makes it into the next block after being prioritized by that node.

Should this be improved with a larger number of txs in the mempool, or by testing over multiple runs?

As for getblocktemplate(), it seems to return the prioritized transaction within the block size set by the node (about 50 txs fit in an 11kb block), but the block "sizelimit" it displays is set at 2 MB in `rpcmining.cpp` line 690:
```
result.push_back(Pair("sizelimit", (int64_t)MAX_BLOCK_SIZE));
```

This was quite confusing, I didn't think the `-blockmaxsize` parameter I was setting was working for awhile.
2017-03-02 06:47:04 +00:00
..
__init__.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
authproxy.py Added primitive zcrawkeygen/zcrawpour implementations 2016-01-19 14:36:04 -07:00
bignum.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
blockstore.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
blocktools.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
comptool.py PARTIAL: typofixes (found by misspell_fixer) 2015-09-22 00:43:15 +00:00
mininode.py Add rpc test for prioritisetransaction 2017-02-12 11:01:45 -08:00
netutil.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
script.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
socks5.py [QA] restructure rpc tests directory 2015-05-18 15:25:45 +02:00
test_framework.py Update RPC tests to account for decreased block interval 2016-06-10 12:02:49 +12:00
util.py [qa] py2: Unfiddle strings into bytes explicitly in ZMQ RPC test 2017-02-08 22:11:53 +00:00