Action enum for channels #3
Labels
No Label
bug
duplicate
enhancement
help wanted
invalid
question
wontfix
No Milestone
No project
No Assignees
1 Participants
Notifications
Due Date
No due date set.
Dependencies
No dependencies set.
Reference: ghostchain/ghost-eye#3
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Qucik side note, this application started as an interface for basic node stats such as genesis block, version, number of peers and etc. 😅
That's why legacy behaviour is to have one enum of actions to everything, while more requests and actions are introduced during expansion of the application. For example for now we have different channels for so-called application actions and network actions but all of them are using same enum (which is sometimes really pain in the ass). We need to separate and remove unnecessary actions based on the channel.
Fun fact,
enum Action
is used in order to parse configuration file, it has pretty strict derives, that's why we are limited for now to pass as action some custom data struct, for exampleExtrinsicDetails
clearly could not be send over the channel. That's why for now on the explorer you see extrinsic hash but not the actual fields 🤗