goat-systems / go-tezos

Go Tezos Is a Go library that exposes and builds upon the Tezos RPC.
MIT License
71 stars 43 forks source link

Endorsing rights support #95

Closed utdrmac closed 4 years ago

utdrmac commented 5 years ago

Added Delegate to the Contents.Metadata Pulling endorsing rights from head at a specific level does not need to mess with snapshot blocks.

{
  "protocol": "Pt24m4xiPbLDhVgVfABUjirbmda3yohdN82Sp9FeuAXJ4eV9otd",
  "chain_id": "NetXwhYbWGa82xo",
  "hash": "oovKAGF2f7rciRmuu2K5NgCN8xukvLmAKGjQx4wR4gfmNQCP7QR",
  "branch": "BMH5F4K6A2eiYzin8sRP4aTTVfoGbmC1GMscckp5JsFdC77tJ7H",
  "contents": [
    {
      "kind": "endorsement",
      "level": 42308,
      "metadata": {
        "balance_updates": [ ... ],
        "delegate": "dn1aUVnffhj4RZ89wQ8NSWwTZYay9PFZSTCx",
        "slots": [ 7 ]
      }
    }
  ],
  "signature": "sigPPZmAsKD7gkpbSw5ERkZ83c4Ezo1QmJ4fDbav8TdCddhw3tz5E82j8rPweoEjoNk65zQ8FzFvM76WtVDL2CjDvTvUijMz"
}
utdrmac commented 5 years ago

Just updated PR to include baking rights at level via Head and refactored baking rights code

utdrmac commented 5 years ago

Added support for capturing double baking evidence