mirror of
https://github.com/fluencelabs/rust-libp2p
synced 2025-06-29 01:31:33 +00:00
feat: upgrade multihash (#1792)
* feat: upgrade to multihash 0.13 `multihash` changes a lot internally, it is using stack allocation instead of heap allocation. This leads to a few limitations in regards on how `Multihash` can be used. Therefore `PeerId` is now using a `Bytes` internally so that only minimal changes are needed. * Update versions and changelogs. Co-authored-by: Roman Borschel <romanb@users.noreply.github.com> Co-authored-by: Roman S. Borschel <roman@parity.io>
This commit is contained in:
@ -140,7 +140,7 @@ fn ma_valid(source: &str, target: &str, protocols: Vec<Protocol<'_>>) {
|
||||
}
|
||||
|
||||
fn multihash(s: &str) -> Multihash {
|
||||
Multihash::from_bytes(bs58::decode(s).into_vec().unwrap()).unwrap()
|
||||
Multihash::from_bytes(&bs58::decode(s).into_vec().unwrap()).unwrap()
|
||||
}
|
||||
|
||||
#[test]
|
||||
|
Reference in New Issue
Block a user