mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Cosmetic changes.
This commit is contained in:
@@ -120,4 +120,4 @@ Json::Value ConnectionPool::getPeersJson()
|
||||
|
||||
return ret;
|
||||
}
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
@@ -39,3 +39,4 @@ public:
|
||||
};
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
@@ -70,7 +70,6 @@ void Peer::connected(const boost::system::error_code& error)
|
||||
detach();
|
||||
std::cout << "Peer::connected Error: " << error << std::endl; //else BOOST_LOG_TRIVIAL(info) << "Error: " << error;
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
void Peer::sendPacketForce(PackedMessage::pointer packet)
|
||||
@@ -600,7 +599,6 @@ PackedMessage::pointer Peer::createValidation(Ledger::pointer ledger)
|
||||
valid->set_sig(sig.begin(), sig.GetSerializeSize());
|
||||
valid->set_hanko(theConfig.HANKO);
|
||||
|
||||
|
||||
PackedMessage::pointer packet=boost::make_shared<PackedMessage>
|
||||
(PackedMessage::MessagePointer(valid), newcoin::VALIDATION);
|
||||
return(packet);
|
||||
@@ -687,7 +685,6 @@ void Peer::receiveTransaction(TransactionPtr trans)
|
||||
|
||||
void Peer::receiveProposeLedger(newcoin::ProposeLedger& packet)
|
||||
{
|
||||
|
||||
theApp->getLedgerMaster().checkLedgerProposal(shared_from_this(), packet);
|
||||
}
|
||||
|
||||
@@ -701,7 +698,7 @@ void Peer::connectTo(KnownNode& node)
|
||||
tcp::endpoint endpoint( address::from_string(node.mIP), node.mPort);
|
||||
mSocket.async_connect(endpoint,
|
||||
boost::bind(&Peer::connected, this, boost::asio::placeholders::error) );
|
||||
|
||||
}
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
@@ -102,3 +102,4 @@ public:
|
||||
};
|
||||
|
||||
#endif
|
||||
// vim:ts=4
|
||||
|
||||
@@ -33,4 +33,4 @@ void PeerDoor::handleConnect(Peer::pointer new_connection,
|
||||
|
||||
startListening();
|
||||
}
|
||||
|
||||
// vim:ts=4
|
||||
|
||||
@@ -19,3 +19,4 @@ class PeerDoor
|
||||
public:
|
||||
PeerDoor(boost::asio::io_service& io_service);
|
||||
};
|
||||
// vim:ts=4
|
||||
|
||||
Reference in New Issue
Block a user