Skip to content

Commit 3ec8d7a

Browse files
committed
Blocktree is not ready yet
1 parent 4d22dc6 commit 3ec8d7a

File tree

3 files changed

+2
-1
lines changed

3 files changed

+2
-1
lines changed

scorex-basics/src/main/scala/scorex/transaction/BlockStorage.scala

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,7 @@ trait BlockStorage extends ScorexLogging {
2323

2424
//Append block to current state
2525
def appendBlock(block: Block): Try[Unit] = synchronized {
26+
//TODO Rollback state for blocktree
2627
history.appendBlock(block).map { blocks =>
2728
blocks foreach { b =>
2829
state.processBlock(b) match {

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

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

1818
/**
19+
* TODO fix situation of forks
1920
* If no datafolder provided, blocktree lives in RAM (useful for tests)
2021
*/
2122
class StoredBlockTree(dataFolderOpt: Option[String], MaxRollback: Int)

src/test/resources/settings-local2.json

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,6 @@
2222
],
2323
"maxRollback": 100,
2424
"offlineGeneration": false,
25-
"history": "blocktree",
2625
"perma": {
2726
"treeDir": "/tmp/scorex/data2/tree/",
2827
"authDataStorage": "authDataStorage2.mapDB"

0 commit comments

Comments
 (0)