Skip to content

Commit 4d22dc6

Browse files
committed
Fix BlockApiSpecification
1 parent 8370f01 commit 4d22dc6

File tree

2 files changed

+3
-4
lines changed

2 files changed

+3
-4
lines changed

scorex-transaction/src/main/scala/scorex/transaction/state/database/blockchain/StoredBlockTree.scala

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@ import scala.annotation.tailrec
1616
import scala.util.{Failure, Success, Try}
1717

1818
/**
19-
* TODO fix
2019
* If no datafolder provided, blocktree lives in RAM (useful for tests)
2120
*/
2221
class StoredBlockTree(dataFolderOpt: Option[String], MaxRollback: Int)

src/test/scala/scorex/lagonaki/integration/api/BlockAPISpecification.scala

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -66,13 +66,13 @@ class BlockAPISpecification extends FunSuite with Matchers with TransactionTesti
6666
checkGenesis(GET.request(s"/blocks/first"))
6767
}
6868

69-
test("GET /blocks/address/{address} API route") {
70-
checkGenesis(GET.request(s"/blocks/address/3Mc2PfwgwZ6txN2rhi6DzYfJRLQ88xRLx5p")(0).as[JsValue])
69+
test("GET /blocks/address/{address}/{from}/{to} API route") {
70+
checkGenesis(GET.request(s"/blocks/address/3Mc2PfwgwZ6txN2rhi6DzYfJRLQ88xRLx5p/0/1")(0).as[JsValue])
7171
}
7272

7373

7474
def checkGenesis(response: JsValue): Unit = {
75-
(response \ "reference").as[String] shouldBe "1111111111111111111111111111111111111111111111111111111111111111"
75+
(response \ "reference").as[String] shouldBe "67rpwLCuS5DGA8KGZXKsVQ7dnPb9goRLoKfgGbLfQg9WoLUgNY77E2jT11fem3coV9nAkguBACzrU1iyZM4B8roQ"
7676
(response \ "transactions" \\ "fee").toList.size shouldBe 3
7777
(response \ "generator").as[String] shouldBe "3Mc2PfwgwZ6txN2rhi6DzYfJRLQ88xRLx5p"
7878
(response \ "signature").as[String] shouldBe "1111111111111111111111111111111111111111111111111111111111111111"

0 commit comments

Comments
 (0)