Skip to content

Commit

Permalink
fix signrawtransaction test
Browse files Browse the repository at this point in the history
  • Loading branch information
aviad committed Dec 19, 2015
1 parent 902c8a5 commit 6cce011
Show file tree
Hide file tree
Showing 3 changed files with 21 additions and 11 deletions.
9 changes: 9 additions & 0 deletions CHANGES.org
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
* Changes in version 0.11.2
+ outdated =getwork= and =gethashespersec= calls were removed, after
their removal from bitcoin versions 0.10 and 0.11.
+ =estimatefee= rpc call was added.

* Contributors:
+ [[https://github.com/micmarsh][Michael Marsh (micmarsh)]]
+ [[https://github.com/sgrove][Sean Grove (sgrove)]]
+ [[https://github.com/pdpi][Pedro Pinheiro (pdpi)]]
11 changes: 5 additions & 6 deletions README.org
Original file line number Diff line number Diff line change
@@ -1,25 +1,25 @@
* clj-btc
Clojure bindings for the original (C++) Bitcoin Client json-rpc API.

This release was tested with [[https://bitcoin.org/en/release/v0.8.5][*version 0.8.5*]].
This release was tested with [[https://bitcoin.org/en/release/v0.11.2][*version 0.11.2*]].

For the full list of calls, see: [[https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_Calls_list][API calls list]].
For the full list of calls, see: [[https://bitcoin.org/en/developer-reference#bitcoin-core-apis][Bitcoin Core APIs]].

* Installation

** [[https://github.com/technomancy/leiningen][leiningen]]
add this to your =project.clj='s =:dependencies=:

#+BEGIN_EXAMPLE
[clj-btc "0.1.2"]
[clj-btc "0.11.2"]
#+END_EXAMPLE

** [[http://maven.apache.org/][Maven]]
#+BEGIN_EXAMPLE
<dependency>
<groupId>clj-btc</groupId>
<artifactId>clj-btc</artifactId>
<version>0.1.2</version>
<version>0.11.2</version>
</dependency>
#+END_EXAMPLE

Expand Down Expand Up @@ -71,7 +71,6 @@
testnet - for test performance and stability.
- [ ] Add types with [[https://github.com/clojure/core.typed][core.typed]].
- [ ] Improve documentation with more examples.
- [ ] Add clojurescript support via =cljx=.


* Changes
Expand All @@ -86,7 +85,7 @@

* License

Copyright 2013 Aviad Reich.
Copyright 2013-2016 Aviad Reich.

The use and distribution terms for this software are covered by the
Apache License, Version 2.0
Expand Down
12 changes: 7 additions & 5 deletions test/clj_btc/core_test.clj
Original file line number Diff line number Diff line change
Expand Up @@ -138,11 +138,13 @@
"01000000019c19404b3cd4aa272cdc45fd6362f33151181d6ea6f26bda8d6311664e8a2248000000006b483045022065939207fde542fd6f38da9c651537f3e36621e9a447f2877ff0e8a807137367022100c7935881cd3af35502eb12a7ea12d7a2952ac5e1ada1dd52bef1b9449fca36240121024d1a5f75a170eebebe25df71a87e3ef012cc07754db4c87feeee65f1aeed84bfffffffff0210270000000000001976a914fac7cf4845a26094ff9571a27db6268950a3b70e88ac3214ac3a000000001976a914560b13a3ac034489c8bc9488d749174a2fb198e988ac00000000")
"get raw transaction")

(is (= (signrawtransaction
:hexstring "010000000189957b01aed596d3b361b576234eaeed3249246f14562d6bc6085166cd247d5a0000000000ffffffff0180969800000000001976a9140dfc8bafc8419853b34d5e072ad37d1a5159f58488ac00000000"
:txinfo [{:txid "7acb74b4ad7f982eed3dabf93c8f474451b0a60f3f7950cd12a2bbe721290cb8" :vout 2 :scriptPubKey "123d"}])
{"hex" "010000000189957b01aed596d3b361b576234eaeed3249246f14562d6bc6085166cd247d5a0000000000ffffffff0180969800000000001976a9140dfc8bafc8419853b34d5e072ad37d1a5159f58488ac00000000",
"complete" false})
(is (supermap? (signrawtransaction
:hexstring "010000000189957b01aed596d3b361b576234eaeed3249246f14562d6bc6085166cd247d5a0000000000ffffffff0180969800000000001976a9140dfc8bafc8419853b34d5e072ad37d1a5159f58488ac00000000"
:txinfo [{:txid "7acb74b4ad7f982eed3dabf93c8f474451b0a60f3f7950cd12a2bbe721290cb8"
:vout 2
:scriptPubKey "123d"}])
{"hex" "010000000189957b01aed596d3b361b576234eaeed3249246f14562d6bc6085166cd247d5a0000000000ffffffff0180969800000000001976a9140dfc8bafc8419853b34d5e072ad37d1a5159f58488ac00000000",
"complete" false})
"raw transaction not signed")))


Expand Down

0 comments on commit 6cce011

Please sign in to comment.