Skip to content

utreexoserver doesn't resume with Flatter TTL data #333

@kcalvinalvin

Description

@kcalvinalvin

I don't think the comment I left here was ever addressed #279 (comment)

Here's the error log that I had.

Done writing. Height 72347 Forest: can't print 227963 leaves. roots:
        0 ffcf670b1d59096e16234622
        1 224909094ee8023106bbf855        2 28403614720757cd9b4c2c18
        3 7e44ff52b8ade3d154391bc6
        4 d01b92dcd5e40d766f3c7334        5 87cb97591051431f6fe2cc1c
        6 875d05288e83207b39bb5b15
        7 4800f5b501e753ff2c1b8c89
        8 3d7c2e87806e2e770b23e99c        9 224efc6526359d369c0d2926 
        10 a4843c23761c4ceb287838d2
        11 f8809f36cabc048bac0d1ba4
        12 0c1e0dcee5c60af5b58a1a34                                                                                              
[N] calvin@bitcoin ~/b/g/u/g/s/g/m/u/c/utreexoserver (master)> ./run.sh
Has access to forest, resuming
restore height 72347                                            Starting forest: can't print 227963 leaves. roots:
        0 ffcf670b1d59096e16234622
        1 224909094ee8023106bbf855
        2 28403614720757cd9b4c2c18
        3 7e44ff52b8ade3d154391bc6
        4 d01b92dcd5e40d766f3c7334
        5 87cb97591051431f6fe2cc1c
        6 875d05288e83207b39bb5b15
        7 4800f5b501e753ff2c1b8c89        8 3d7c2e87806e2e770b23e99c        9 224efc6526359d369c0d2926         10 a4843c23761c4ceb287838d2
        11 f8809f36cabc048bac0d1ba4
        12 0c1e0dcee5c60af5b58a1a34                                
Building Proofs and ttls...                                                                                                      
panic: utxo created h 72347 idx in block 12 destroyed h 72348 but max h 72347 cur h 72347
                                
goroutine 10 [running]:                                                                                                          
github.com/mit-dci/utreexo/bridgenode.flatFileWorkerTTL(0xc000042420, 0xc000042540, 0xc0000182b8, 0x13, 0xc000016240, 0x22, 0xc000022400, 0x31, 0xc0000182d0, 0x12, ...)
        /home/calvin/bitcoin-projects/go/utreexo/go/src/github.com/mit-dci/utreexo/bridgenode/flatfileworker.go:181 +0x4a9
created by github.com/mit-dci/utreexo/bridgenode.BuildProofs
        /home/calvin/bitcoin-projects/go/utreexo/go/src/github.com/mit-dci/utreexo/bridgenode/genproofs.go:110 +0x4e8

Until this gets fixed, I think making the previous TTL data with leveldb by default is the way to go.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions