Closed fbzhong closed 6 years ago
@royshang For the event, we may need a trie to store them and keep them consistent.
@LeonLi000 the event functionality in Network/Dispatcher should be use the commit above.
We should follow up the following working items:
Event
trie and Event Trigger Point
in Core for ChainEventCategory
, by @royshang Event Hook
in Network for NodeEventCategory
, by @LeonLi000 Server Push RPC API
in rpc, by @qywang2012
we can use Server streaming RPCs
in gRPC, have no idea in HTTP.Event
functionality and Event Hook
in NVM for ChainEventCategory
, by @fbzhongEventEmitter
in Neblet
, by @LeonLi000 done.
Since Smart Contract and Transaction is executed in async way, submit and wait. As a developers or users, they are want to know when the submitted tx is onchain, or notice them it's done.
So in nebulas, we introduce the
Event
functionality, as the following:Event
in Smart Contract. After successful execution, the events will be triggered in order.