ct-woodpecker icon indicating copy to clipboard operation
ct-woodpecker copied to clipboard

cttestsrv: Fix usage of deprecated Trillian protobuf fields

Open cpu opened this issue 7 years ago • 0 comments

GolangCI's "megacheck" linter found three deprecated fields to address in the cttestsrv:

  • signedLogRoot.TreeSize is deprecated: TreeSize moved to LogRoot.
  • signedLogRoot.TimestampNanos is deprecated: TimestampNanos moved to LogRoot.
  • signedLogRoot.RootHash is deprecated: RootHash moved to LogRoot.

I think fixing these will require unserializing the log_root []byte from the response and referencing the fields on that structure.

cpu avatar Sep 13 '18 15:09 cpu