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

Simplify BlockService.Get(), prevent rare race conditions #68

Closed BrianBland closed 5 years ago

BrianBland commented 5 years ago

Use explicit block height instead of HEAD height - diff.

This removes one network call and avoids a potential race condition where a new head is applied between these two calls.