Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: check links on setting and sanitise on encoding #92

Merged
merged 4 commits into from
Oct 4, 2022

Commits on Sep 30, 2022

  1. feat: check links on setting and sanitise on encoding

    Attempt to keep ProtoNode always in a state that can be encoded without errors
    to avoid cases where the panicing methods may be forced to panic on error.
    
    go-codec-dagpb will error when encoding either of the following cases:
    
    * The Hash field in links should always be set, cannot be cid.Undef
    * The Tsize field needs to fit into an int64, otherwise it'll overflow to
      negative which is not allowed
    
    Error on cases where a user may attempt to set links that will eventually
    error on encode. Then when we do encode, silently handle these cases if they
    manage to slip through (e.g. if they come in from a decoded block with a
    bad form).
    rvagg committed Sep 30, 2022
    Configuration menu
    Copy the full SHA
    ecb66fe View commit details
    Browse the repository at this point in the history
  2. Configuration menu
    Copy the full SHA
    76e85a4 View commit details
    Browse the repository at this point in the history

Commits on Oct 4, 2022

  1. Configuration menu
    Copy the full SHA
    ce21641 View commit details
    Browse the repository at this point in the history
  2. chore: bump version to 0.8.0

    rvagg committed Oct 4, 2022
    Configuration menu
    Copy the full SHA
    3b4ca8a View commit details
    Browse the repository at this point in the history