Commit graph

1308 commits

Author SHA1 Message Date
nkohen
17c3c2281f Ran scalafmt 2018-06-27 17:43:48 -05:00
nkohen
8dd6d57afa Fixed endianness bugs 2018-06-25 13:53:59 -05:00
nkohen
6dd7ffade9 added travis integration, added awaitSync to createNodePair, cleaned up RpcAddressReads and TransactionInputReads, added ScripSignatureReads, made sure all tests run all assertions as intended 2018-06-25 13:38:40 -05:00
nkohen
58996516bf Made AddressType an ADT instead of an Enumeration, made datadir a File instead of a String, fixed listSinceBlock (allowing for no header hash to be given), cleaned up signRawTransaction, factored out checkUnitError function in parseResult, removed unused imports, fixed getBlockHash test, ran scalafmt, and responded to some minor changes from code review 2018-06-25 09:56:37 -05:00
nkohen
846ea34143 I think I fixed the concurrency/Thread.sleep issues! 2018-06-25 09:56:37 -05:00
nkohen
ed409a693b Began work on replacing bad uses of Thread.sleep 2018-06-25 09:56:37 -05:00
nkohen
618418502a Added implementation and test for getBlockTemplate, replaced filter(...).head with find(...).get (performs better), and ran scalafmt 2018-06-25 09:56:37 -05:00
nkohen
b96123355a Added tests for prioritiseTransaction and invalidateBlock 2018-06-25 09:56:37 -05:00
nkohen
17fed6f874 Added test for importPrunedFunds and removePrunedFunds 2018-06-25 09:56:37 -05:00
nkohen
0e5904faa0 Added tests for importPubKey and preciousBlock 2018-06-25 09:56:37 -05:00
nkohen
6390f19d51 Added tests for bumpFee and combineRawTransaction 2018-06-25 09:56:37 -05:00
nkohen
d30e689058 Refactored JsonModels to follow bitcoind's organization as specified by the help rpc 2018-06-25 09:56:37 -05:00
nkohen
8296935646 Fixed ban tests 2018-06-25 09:56:37 -05:00
nkohen
cc16f2f194 Factored common code patterns out of tests 2018-06-25 09:56:37 -05:00
nkohen
87e462e648 Made added () to parameterless functions with side effects, and did some minor test cleanup 2018-06-25 09:56:37 -05:00
nkohen
13d65217d4 Removed remaining unsafe cases in JsonReaders 2018-06-25 09:56:37 -05:00
nkohen
d73d8e4e5c Replaced Option parameters with overloaded methods and created an AddressType Enum 2018-06-25 09:56:37 -05:00
nkohen
cc8bc33ef0 Added tests for setTxFee and pruneBlockChain 2018-06-25 09:56:37 -05:00
nkohen
a33565d721 Added tests for abortRescan, getAccount, getAccountAddress, getChainTxStats, getReceivedByAccount, listAccounts, listReceivedByAccount, listWallets, logging, move, rescanBlockChain, saveMemPool, setAccount, and uptime 2018-06-25 09:56:37 -05:00
nkohen
c67d762b62 Added implementations (and not tests yet) for getchaintxstats, savemempool, logging, uptime, combinerawtransaction, estimatefee, abortrescan, getaccount, getaccountaddress, getreceivedbyaccount, importpubkey, listaccounts, listreceivedbyaccount, listwallets, move, rescanblockchain, and setaccount 2018-06-25 09:56:37 -05:00
nkohen
fd85183152 Added tests for importAddress, listAddressGroupings, listLockUnspent, listReceivedByAddress, listUnspent, and lockUnspent 2018-06-25 09:56:37 -05:00
nkohen
5ade0e3401 Added error handling for RPCs that are meant to return Future[Unit] (they now fail) and added a test for failure of abandonTransaction on an unsent transaction 2018-06-25 09:56:37 -05:00
nkohen
9397a2cef1 Fixed some test failures (client.generate(200) from beforeAll was interfering with some tests), made debug info better, and added tests for getMemPoolAncestors and getMemPoolDescendants 2018-06-25 09:56:37 -05:00
nkohen
7abdab7262 Added tests for fundRawTransaction, sendFrom, sendToAddress, sendMany, abandonTransaction, getRawTransaction, getTxOut, getTxOutProof, verifyTxOutProof, and getAddressesByAccount 2018-06-25 09:56:37 -05:00
nkohen
bc41160a76 Ran scalafmt 2018-06-25 09:56:37 -05:00
nkohen
db605e2f22 Added tests for createMultiSig, addMultiSig, decodeScript, importPrivKey, signMessage, signMessageWithPrivKey, verifyMessage, importMulti 2018-06-25 09:56:37 -05:00
nkohen
8b0e3ac7b2 Added tests for getPeerInfo, getAddedNodeInfo, setBan, listBanned, and clearBanned 2018-06-25 09:56:37 -05:00
nkohen
7774a99488 Added tests for addNode and disconnectNode 2018-06-25 09:56:37 -05:00
nkohen
6674486e44 Added tests for dumpPrivKey, walletPassphraseChange, and importWallet 2018-06-25 09:56:37 -05:00
nkohen
d4d3f0ce55 Test now starts up three bitcoind instances, moved walletpassphrase and walletlock tests onto their own bitcoind instance 2018-06-25 09:56:37 -05:00
nkohen
51c75ca4ea Replaced InetAddress and InetSocketAddress with URI 2018-06-25 09:56:37 -05:00
nkohen
78b30c69d3 Added tests for encryptWallet, walletLock, dumpWallet, and backupWallet 2018-06-25 09:56:37 -05:00
nkohen
0416f0bc07 RpcClient now depends on a DaemonInstance and the tests start up their own bitcoind instance, test, and then shut it down; all in a tmp directory (which gets deleted) 2018-06-25 09:56:37 -05:00
nkohen
2edc0f3009 Added tests for getNetTotals and getRawMemPoolWithTransactions 2018-06-25 09:56:37 -05:00
nkohen
37c5e06b81 Cleanup: Got rid of dummy variables (they are hardcoded for backwards compatibility now), replaced JsArray(vector.map(Json.toJson(_)) pattern with Json.toJson(vector.map), and ran scalafmt 2018-06-25 09:56:37 -05:00
nkohen
e4de3453a2 Added functionality for importmulti, getpeerinfo, getrawmempool (verbose), getnettotals, getmempooldescendants, getmempoolancestors, and sendmany 2018-06-25 09:56:37 -05:00
nkohen
bd23f3d244 Removed unnecessary logging from tests 2018-06-25 09:56:37 -05:00
nkohen
2bb17146f1 Aaaaaand more tests 2018-06-25 09:56:37 -05:00
nkohen
f8b977903f Formatted using scalafmt 2018-06-25 09:56:37 -05:00
nkohen
e4888553fd Added a couple more tests 2018-06-25 09:56:37 -05:00
nkohen
590e121a98 Added a bunch of tests 2018-06-25 09:56:37 -05:00
nkohen
ded5d96c8f Made many changes as requested by Chris Stewart in code review 2018-06-25 09:56:37 -05:00
nkohen
1a2bcfa552 cleanup of ScriptSignature in tests 2018-06-25 09:56:37 -05:00
nkohen
84d4f41065 Split signRawTransaction into signRawTransactionWithKeys and signRawTransactionWithWallet and added tests for decodeRawTransaction and signRawTransactionWIthWallet 2018-06-25 09:56:37 -05:00
nkohen
a6fab31069 Added getblockchaininfo and createrawtransaction functionality with tests (also fixed bug where bip125-replaceable needed to be read into field called bip125_replaceable) 2018-06-25 09:56:37 -05:00
nkohen
29952d928c Created separate Payment objects for listTransactions and listSinceBlock to avoid Scala's limit of 22 parameters 2018-06-25 09:56:37 -05:00
Nadav Kohen
f5789abb0a Added functionality for many rpc calls (still no tests for them though) 2018-06-25 09:56:37 -05:00
Nadav Kohen
2f989909be Added functionality for getrawmempool, getrawtransaction, gettransaction, importaddress, importprunedfunds, listaddressgroupings and listlockunspent 2018-06-25 09:56:37 -05:00
Nadav Kohen
aad0b7aab6 Added fundrawtransaction functionality 2018-06-25 09:56:37 -05:00
Nadav Kohen
f5f5118e9c Cleanup and type fixes 2018-06-25 09:56:37 -05:00