Merge branch 'dandelion'

This commit is contained in:
rairyx 2019-05-14 16:18:59 -07:00
commit 0b7301aa32
4 changed files with 4 additions and 2 deletions

View File

@ -1,4 +1,4 @@
SRC = pubsub-interop.go
SRC = raven.go
BIN = $(SRC:.go=)
DHT_SERVER = libp2p-bootstrap.goelzer.io

View File

@ -62,6 +62,7 @@ waterfall([
fsub.on(topicName, (data) => {
const messageStr = data.data
console.log("received:" + messageStr)
// console.log("<peer " + peerIdTruncdStr + ">: " + messageStr)
})
fsub.subscribe(topicName)

View File

@ -60,7 +60,8 @@ fn main() {
fn on_floodsub<TTopology>(&mut self, message: <libp2p::floodsub::Floodsub<TSubstream> as libp2p::core::swarm::NetworkBehaviour<TTopology>>::OutEvent)
where TSubstream: libp2p::tokio_io::AsyncRead + libp2p::tokio_io::AsyncWrite
{
println!("{:?}: {}", &message.source,String::from_utf8_lossy(&message.data));
//println!("{:?}: {}", &message.source,String::from_utf8_lossy(&message.data));
println!("Received: {}", String::from_utf8_lossy(&message.data));
}
}

BIN
util/private_key.bin.peer.w6 Executable file

Binary file not shown.