Commit Graph

1208 Commits

Author SHA1 Message Date
Chris Stewart
88e9b0b1df Add compiler options for the Compile scope 2018-11-18 18:37:26 -05:00
Chris Stewart
5722e2bbd5 Optimize RawBitcoinSerializer.parseCmpctSizeUIntSeq to use a builder rather than just manually appending time. Seems to speed up performance on the two test vectors in BlockTests by ~1s 2018-11-18 11:18:36 -05:00
Torkel Rogstad
531a1e7324 Adds cancelable in Global := true 2018-11-15 14:11:34 -05:00
Chris Stewart
13249437c0 Add qualifers to dependencies to download sources (#240) 2018-11-11 17:22:22 -05:00
Torkel Rogstad
23162012fb Adds classpath argument to .jvmopts (#232) 2018-11-10 08:39:28 -05:00
Nadav Kohen
7f9265433d Added test for ZMQSubscriber that actually checks sent data (#225) 2018-11-03 10:46:31 -04:00
Chris Stewart
a01df3f6f0 Bump versions of dependencies (#224) 2018-10-26 10:06:49 -04:00
Torkel Rogstad
fc6498c0fb Bitcoind spawn tweaks (#221)
* Test for single node creation

* Passes parameters explicitly to bitcoind
2018-10-17 17:49:40 -04:00
sken
f4aaa0b2cd fix broken links in read me (#220) 2018-10-17 09:26:25 -04:00
Tanner R
b0db84dd76 Initial Test Coverage Improvement (#214) 2018-10-12 21:28:17 -04:00
Chris Stewart
84c99dbdb6 implement p2sh(p2wpkh) inside of the interpreter and TxBuilder (#207)
fix bug in P2SHScriptSignature.redeemScript

uncommenting the fuzz tests

Add p2sh(p2wsh) test vectors from BIP143

Fix possible index out of bounds exception w/ updating an EmptyWitness
2018-10-01 10:00:44 -04:00
Nadav Kohen
6a3eb80bfc Moved TestUtil in test to RpcUtil in main, added alternative to awaitCondition that uses the ActorSystem scheduler instead of Thread.sleep (#191)
Altered awaitCondition to use scheduler instead of Thread.sleep

Added initial tests and fixed initial bugs

Added tests for awaitCondition and createNodePair/deleteNodePair

Minor tweaks to RpcClientTest

Moved some code back into TestUtil and got rid of TestUtil and RpcUtil actor systems

Refactor retryUntilSatisfied, make duration parameters have type FiniteDuration

Made timeouts configurable and added docs

Fixed dumb bug
2018-09-07 07:16:02 -04:00
Chris Stewart
2d72eb5459 Add 'Bitcoind' prefix to all bitcoind specific rpc stuff (#192) 2018-09-06 16:12:55 -04:00
Chris Stewart
7b074257f5 Merge pull request #187 from Christewart/bump_sbt_version
bump sbt to 1.1.6, bump scalac version to 2.11.12
2018-08-26 14:02:23 -04:00
Chris Stewart
42b0600051 bump sbt to 1.1.6, bump scalac version to 2.11.12
Adding compilerOpts, adding commonSettings across projects
2018-08-26 12:44:25 -05:00
Chris Stewart
b4fea862fb Merge pull request #186 from Christewart/rm_scodec_prefix
removing scoded.bits prefix from application code
2018-08-10 16:04:49 -04:00
Chris Stewart
84e92d4dfa removing scoded.bits prefix from application code
Finishing scodec.bits refactor
2018-08-10 14:01:14 -05:00
Chris Stewart
8f2b0ecd84 Merge pull request #183 from Christewart/topic/scodec
Refactoring bitcoin-s to use scodec
2018-08-10 11:32:13 -04:00
Daniel James
5b5852bf72 scodec
Migration to scodec

Src is compiling

tests compiling

All unit tests passing now

fix compiler issue in ScriptParser

bump timeout to run on travis ci

Fixing two unit tests that had types failing

Turn down excessive logging

Uncomment rpc tests

fixing nits
2018-08-09 21:32:17 -05:00
Chris Stewart
c83959a2a6 Merge pull request #182 from Christewart/segwit_pubkey_invariant
Add invariant that doesn't allow segwit scripts to be created with un…
2018-07-29 12:12:35 -04:00
Chris Stewart
0c29c8cfda Add invariant that doesn't allow segwit scripts to be created with uncompressed public keys
reset scalafmt for rpc/

Removing unit test that used uncompressed public key for P2WSH, removing extra debug
2018-07-22 14:10:01 -05:00
Chris Stewart
b0229543c9 Merge pull request #171 from nkohen/rpc
Rpc
2018-07-01 10:29:28 -04:00
nkohen
a55befa995 Ran scalafmt 2018-06-27 17:43:48 -05:00
nkohen
e2d92a18e3 Fixed endianness bugs 2018-06-25 13:53:59 -05:00
nkohen
8ee3aab58a 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
e682e23449 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
a9162a3f4d Began work on replacing bad uses of Thread.sleep 2018-06-25 09:56:37 -05:00
nkohen
04bace39d0 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
0198124259 Added tests for bumpFee and combineRawTransaction 2018-06-25 09:56:37 -05:00
nkohen
e9d6d6410a Refactored JsonModels to follow bitcoind's organization as specified by the help rpc 2018-06-25 09:56:37 -05:00
nkohen
1718e04f00 Removed remaining unsafe cases in JsonReaders 2018-06-25 09:56:37 -05:00
nkohen
79a3917adc 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
b4c3e2ac57 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
61148955b3 Added tests for importAddress, listAddressGroupings, listLockUnspent, listReceivedByAddress, listUnspent, and lockUnspent 2018-06-25 09:56:37 -05:00
nkohen
3c9e52e881 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
6938a882f7 Added tests for fundRawTransaction, sendFrom, sendToAddress, sendMany, abandonTransaction, getRawTransaction, getTxOut, getTxOutProof, verifyTxOutProof, and getAddressesByAccount 2018-06-25 09:56:37 -05:00
nkohen
00c2abcd48 Added tests for createMultiSig, addMultiSig, decodeScript, importPrivKey, signMessage, signMessageWithPrivKey, verifyMessage, importMulti 2018-06-25 09:56:37 -05:00
nkohen
e7ad9500da Added tests for getPeerInfo, getAddedNodeInfo, setBan, listBanned, and clearBanned 2018-06-25 09:56:37 -05:00
nkohen
88779365d3 Replaced InetAddress and InetSocketAddress with URI 2018-06-25 09:56:37 -05:00
nkohen
a537a7ef91 Added tests for encryptWallet, walletLock, dumpWallet, and backupWallet 2018-06-25 09:56:37 -05:00
nkohen
b3be4d2a14 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
c5362b1495 Added tests for getNetTotals and getRawMemPoolWithTransactions 2018-06-25 09:56:37 -05:00
nkohen
7f0412a784 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
3630bf1b00 Added functionality for importmulti, getpeerinfo, getrawmempool (verbose), getnettotals, getmempooldescendants, getmempoolancestors, and sendmany 2018-06-25 09:56:37 -05:00
nkohen
a6dd90ef5f Aaaaaand more tests 2018-06-25 09:56:37 -05:00
nkohen
0b06370d65 Formatted using scalafmt 2018-06-25 09:56:37 -05:00
nkohen
bce491f5ec Added a bunch of tests 2018-06-25 09:56:37 -05:00
nkohen
53a617fea6 Made many changes as requested by Chris Stewart in code review 2018-06-25 09:56:37 -05:00
nkohen
5389d9187f cleanup of ScriptSignature in tests 2018-06-25 09:56:37 -05:00
nkohen
2a7c19b4dc Split signRawTransaction into signRawTransactionWithKeys and signRawTransactionWithWallet and added tests for decodeRawTransaction and signRawTransactionWIthWallet 2018-06-25 09:56:37 -05:00