Skip to content

Commit

Permalink
added version and hash to transaction response
Browse files Browse the repository at this point in the history
  • Loading branch information
jpzk committed Oct 29, 2019
1 parent 78607be commit f946fce
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 3 deletions.
4 changes: 4 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,7 @@
# 1.4

* added version and hash to TransactionResponse

# 1.3

* added getBlock by height
2 changes: 1 addition & 1 deletion build.sbt
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
lazy val commonSettings = Seq(
organization := "io.tokenanalyst",
version := "1.2.0",
version := "1.4.0",
scalaVersion := "2.12.10",
description := "bitcoin-rpc")

Expand Down
4 changes: 3 additions & 1 deletion src/main/scala/Protocol.scala
Original file line number Diff line number Diff line change
Expand Up @@ -63,12 +63,14 @@ object Protocol {
confirmations: Int,
blockhash: String,
blocktime: Long,
hash: String,
hex: String,
txid: String,
time: Long,
vsize: Int,
size: Int,
weight:Int,
weight: Int,
version: Int,
vin: List[TransactionResponseVin],
vout: List[TransactionResponseVout],
locktime: Long
Expand Down
2 changes: 1 addition & 1 deletion src/main/scala/TestApp.scala
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ object TestApp extends IOApp {
BitcoinRPC.openAll().use {
case (client,_) =>
for {
block <- BitcoinRPC.getBlock(client, 1L)
block <- BitcoinRPC.getTransaction(client, "787e26b4886a7e67062bec2b6a1934639ad09f5e8060ed950b402044722af8fa")
_ <- IO { println(block) }
} yield ExitCode(0)
}
Expand Down

0 comments on commit f946fce

Please sign in to comment.