Cherry-Node icon indicating copy to clipboard operation
Cherry-Node copied to clipboard

IPFS Node info every Staking Era

Open charmitro opened this issue 3 years ago • 2 comments

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,
}

charmitro avatar Aug 08 '22 11:08 charmitro

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?

zycon91 avatar Aug 09 '22 08:08 zycon91

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?

In Substrate we always use Vec<u8> for strings.

charmitro avatar Aug 09 '22 09:08 charmitro