• Kevin Atkinson's avatar
    Add DAGService.GetLinks() method and use it in the GC and elsewhere. · 3899194c
    Kevin Atkinson authored
    This method will use the (also new) LinkService if it is available to
    retrieving just the links for a MerkleDAG without necessary having to
    retrieve the underlying block.
    
    For now the main benefit is that the pinner will not break when a block
    becomes invalid due to a change in the backing file.  This is possible
    because the metadata for a block (that includes the Links) is stored
    separately and thus always available even if the backing file changes.
    
    License: MIT
    Signed-off-by: default avatarKevin Atkinson <k@kevina.org>
    3899194c
merkledag.go 10.7 KB