File tree Expand file tree Collapse file tree 2 files changed +3
-4
lines changed
scorex-transaction/src/main/scala/scorex/transaction/state/database/blockchain
src/test/scala/scorex/lagonaki/integration/api Expand file tree Collapse file tree 2 files changed +3
-4
lines changed Original file line number Diff line number Diff line change @@ -16,7 +16,6 @@ import scala.annotation.tailrec
16
16
import scala .util .{Failure , Success , Try }
17
17
18
18
/**
19
- * TODO fix
20
19
* If no datafolder provided, blocktree lives in RAM (useful for tests)
21
20
*/
22
21
class StoredBlockTree (dataFolderOpt : Option [String ], MaxRollback : Int )
Original file line number Diff line number Diff line change @@ -66,13 +66,13 @@ class BlockAPISpecification extends FunSuite with Matchers with TransactionTesti
66
66
checkGenesis(GET .request(s " /blocks/first " ))
67
67
}
68
68
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 ])
71
71
}
72
72
73
73
74
74
def checkGenesis (response : JsValue ): Unit = {
75
- (response \ " reference" ).as[String ] shouldBe " 1111111111111111111111111111111111111111111111111111111111111111 "
75
+ (response \ " reference" ).as[String ] shouldBe " 67rpwLCuS5DGA8KGZXKsVQ7dnPb9goRLoKfgGbLfQg9WoLUgNY77E2jT11fem3coV9nAkguBACzrU1iyZM4B8roQ "
76
76
(response \ " transactions" \\ " fee" ).toList.size shouldBe 3
77
77
(response \ " generator" ).as[String ] shouldBe " 3Mc2PfwgwZ6txN2rhi6DzYfJRLQ88xRLx5p"
78
78
(response \ " signature" ).as[String ] shouldBe " 1111111111111111111111111111111111111111111111111111111111111111"
You can’t perform that action at this time.
0 commit comments