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

visor.Visor.GetSignedBlocksSince does not return genesis block #960

Closed
isaacvr opened this issue Nov 2, 2019 · 0 comments
Closed

visor.Visor.GetSignedBlocksSince does not return genesis block #960

isaacvr opened this issue Nov 2, 2019 · 0 comments
Labels
bug Something isn't working

Comments

@isaacvr
Copy link

isaacvr commented Nov 2, 2019

Sometimes it is necessary to fetch genesis block from high level code. For example, working on skycoin/services#12, I need to extract genesis block of new coin and create unspent outputs with coin.CreateUnspent to send initial volume to distribution addresses.

However visor.Visor.GetSignedBlocksSince(seq=0, ct=1) always returns empty slice, because (seq=0 and ct > 0) is an edge case.

Also docs for daemon.Visor.GetSignedBlocks claim that it "returns numbers of signed blocks since seq". However docs for visor.Visor.GetSignedBlocks metntion that it "returns N signed blocks more recent than Seq"

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant