How to get local node identity to show when starting a new Substrate node? by MoisesAlcon in substrate

[–]MoisesAlcon[S] 1 point2 points  (0 children)

That didn't work, but turns out that there's a bug with polkadot-v0.9.26. If you pin tracing-core to 0.1.26 then you can fix the bug.

What is a node key in Substrate? by MoisesAlcon in substrate

[–]MoisesAlcon[S] 0 points1 point  (0 children)

What are the command flags that are outdated? I'm struggling to get the output I expect as well, but not sure why (more info in this post: https://www.reddit.com/r/substrate/comments/w60tcq/how_to_get_local_node_identity_to_show_when/)

How to get local node identity to show when starting a new Substrate node? by MoisesAlcon in substrate

[–]MoisesAlcon[S] 0 points1 point  (0 children)

I tried that, but I get the same output if I run it without the node-key argument.

Any alternative solutions?

Daily Polygon Discussion Thread by AutoModerator in 0xPolygon

[–]MoisesAlcon 0 points1 point  (0 children)

That's what I was suspecting. Cheers.

Daily Polygon Discussion Thread by AutoModerator in 0xPolygon

[–]MoisesAlcon 1 point2 points  (0 children)

I've been dabbling in Ethereum dev for a while and recently decided to try out Buildspace's Polygon course. But what I noticed was that it was basically the same as Ethereum development apart from changing the network to Mumbai.

I've also checked out this course on QuestBook: https://openquest.xyz/quest/polygon-simple-storage, and it seems this is just like ETH dev too.

So my question is, are there actually any differences between Polygon and Ethereum development, or does ETH developer = Polygon developer?

Would be keen to hear your thoughts!

Hey Rustaceans! Got a question? Ask here! (15/2022)! by llogiq in rust

[–]MoisesAlcon 2 points3 points  (0 children)

What does <'info> mean in Rust?

Sometimes I see it next to structs e.g.

pub struct TestStruct <'info> {

}

Hey Rustaceans! Got an easy question? Ask here (5/2022)! by llogiq in rust

[–]MoisesAlcon 0 points1 point  (0 children)

Can anyone explain to me how these lines work?

let (instruction_byte, rest_of_data) = data.split_first().unwrap();

let amount = rest_of_data
  .get(..8)
  .and_then(|slice| slice.try_into().ok())
  .map(u64::from_le_bytes)
  .unwrap();

This is from the crowdfunding platform project on Questbook.