-
Notifications
You must be signed in to change notification settings - Fork 1k
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
Adding Neo.Runtime.GetTime and Neo.Runtime.GetCurrentBlock #122
Conversation
{ | ||
return persisting_block; | ||
} | ||
return GetBlock(Height); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Maybe in the else
was good option set persisting_block=GetBlock (Height)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I want persisting_block
to be null
unless execution is in the middle of LeveldbBlockchain.Persist
I'm not going to accept |
Will remove |
For
|
for issue #114
Neo.Runtime.GetTime
Neo.Runtime.GetCurrentBlock
CurrentBlock
toBlockchain
. This retrieves the currently persisting block if a block is currently being persisted, otherwise it returns the highest blockIf either of these API are called during
TriggerType.Verification
, the most recent blockchain on the block is returned. If it is called duringTriggerType.Application
, it will be the currently persisting block.