Skip to content
This repository has been archived by the owner on Dec 7, 2023. It is now read-only.

Show utilitary methods for Neo-Cli #546

Closed

Conversation

Thacryba
Copy link
Contributor

@Thacryba Thacryba commented Feb 26, 2020

This is an update from #455 and complementing #535.

Some changes were made:

  • Adding the command show last-block:
    image

  • Adding the block index on show last-transactions:
    image

  • Changing the time format in show block:
    image

It can be merged after #536.

@Thacryba Thacryba marked this pull request as ready for review March 11, 2020 18:23
@Thacryba Thacryba force-pushed the show-utilitary-methods branch 2 times, most recently from 751357e to 8ebb90c Compare March 31, 2020 13:34
@superboyiii
Copy link
Member

@Thacryba I think the second function is very useful. However, it hasn't decompile tx compeletely. So op codes haven't be recognized yet. And since the json output can be very long in cli, I think it's more suitable to be made into rpcserver plugin and the first one and the third one are already existed. I recommend to improve the second one and made txid as a param in RPC.

/// <param name="contractHash"></param>
/// <returns></returns>
[ConsoleCommand("show contract", Category = "Show Commands")]
private void OnShowContract(string contractHash)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this could be on the Plugin and also be called through RPC.

/// <param name="desiredCount"></param>
/// <returns></returns>
[ConsoleCommand("show last-transactions", Category = "Show Commands")]
private void OnShowLastTransactions(uint desiredCount)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Perhaps this could be on the Plugin and also be called through RPC.

@Thacryba Thacryba closed this May 22, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants