Cherry-Node
Cherry-Node copied to clipboard
IPFS Node info every Staking Era
We want to contain these info on an event every era
pub struct IpfsNode {
pub peer_id: String,
pub addr: String,
pub avail: i32,
pub max: i32,
pub files: i32,
}
I cannot find a way to put a String as an Event argument. Should we emit the peer_id and addr as vec<u8> and the node_listener converts them to String?
I cannot find a way to put a
Stringas an Event argument. Should we emit thepeer_idandaddrasvec<u8>and the node_listener converts them toString?
In Substrate we always use Vec<u8> for strings.