Closed sameh-farouk closed 5 months ago
Currently we indexing the node power events powerStateChanged, and powerTargetChanged but in not very useful way, it just keeps the last status in db. instead, we can keep all power related events in a table.
powerStateChanged
powerTargetChanged
https://github.com/threefoldtech/tfchain_graphql/blob/da00000dd87ceca477991fbab9c0934aebd1b3f5/src/mappings/nodes.ts#L518
https://github.com/threefoldtech/tfchain_graphql/blob/da00000dd87ceca477991fbab9c0934aebd1b3f5/src/mappings/nodes.ts#L548
Close as duplicated https://github.com/threefoldtech/tfchain_graphql/issues/133
Currently we indexing the node power events
powerStateChanged
, andpowerTargetChanged
but in not very useful way, it just keeps the last status in db. instead, we can keep all power related events in a table.https://github.com/threefoldtech/tfchain_graphql/blob/da00000dd87ceca477991fbab9c0934aebd1b3f5/src/mappings/nodes.ts#L518
https://github.com/threefoldtech/tfchain_graphql/blob/da00000dd87ceca477991fbab9c0934aebd1b3f5/src/mappings/nodes.ts#L548