mirror of
https://github.com/eosswedenorg/thalos
synced 2026-07-02 11:43:40 +02:00
transport/message/types.go: Rename Action field to Name in ActionTrace struct
This commit is contained in:
parent
68c21c8ed8
commit
7637b6e16b
2 changed files with 12 additions and 7 deletions
|
|
@ -94,9 +94,9 @@ func (processor *ShipProcessor) processTraces(traces []*ship.TransactionTraceV0)
|
||||||
|
|
||||||
act := message.ActionTrace{
|
act := message.ActionTrace{
|
||||||
TxID: trace.ID.String(),
|
TxID: trace.ID.String(),
|
||||||
Receiver: act_trace.Receiver.String(),
|
Name: act_trace.Act.Name.String(),
|
||||||
Contract: act_trace.Act.Account.String(),
|
Contract: act_trace.Act.Account.String(),
|
||||||
Action: act_trace.Act.Name.String(),
|
Receiver: act_trace.Receiver.String(),
|
||||||
HexData: hex.EncodeToString(act_trace.Act.Data),
|
HexData: hex.EncodeToString(act_trace.Act.Data),
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
@ -118,9 +118,9 @@ func (processor *ShipProcessor) processTraces(traces []*ship.TransactionTraceV0)
|
||||||
|
|
||||||
channels := []transport.Channel{
|
channels := []transport.Channel{
|
||||||
transport.Action{}.Channel(),
|
transport.Action{}.Channel(),
|
||||||
transport.Action{Action: act.Action}.Channel(),
|
transport.Action{Action: act.Name}.Channel(),
|
||||||
transport.Action{Contract: act.Contract}.Channel(),
|
transport.Action{Contract: act.Contract}.Channel(),
|
||||||
transport.Action{Action: act.Action, Contract: act.Contract}.Channel(),
|
transport.Action{Action: act.Name, Contract: act.Contract}.Channel(),
|
||||||
}
|
}
|
||||||
|
|
||||||
for _, channel := range channels {
|
for _, channel := range channels {
|
||||||
|
|
|
||||||
|
|
@ -8,9 +8,14 @@ type HearthBeat struct {
|
||||||
|
|
||||||
type ActionTrace struct {
|
type ActionTrace struct {
|
||||||
TxID string `json:"tx_id"`
|
TxID string `json:"tx_id"`
|
||||||
Receiver string `json:"receiver"`
|
|
||||||
|
// Action name
|
||||||
|
Name string `json:"name"`
|
||||||
|
|
||||||
|
// Contract account.
|
||||||
Contract string `json:"contract"`
|
Contract string `json:"contract"`
|
||||||
Action string `json:"action"`
|
|
||||||
|
Receiver string `json:"receiver"`
|
||||||
Data interface{} `json:"data"`
|
Data interface{} `json:"data"`
|
||||||
HexData string `json:"hex_data"`
|
HexData string `json:"hex_data"`
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue