mirror of
https://github.com/Xahau/xahaud.git
synced 2025-12-06 17:27:52 +00:00
Use C++14 lambda declaration.
This commit is contained in:
committed by
Nik Bougalis
parent
6464d1abc1
commit
d0770cdb1a
@@ -1078,10 +1078,10 @@ PeerImp::onMessage (std::shared_ptr <protocol::TMTransaction> const& m)
|
|||||||
p_journal_.trace << "No new transactions until synchronized";
|
p_journal_.trace << "No new transactions until synchronized";
|
||||||
else
|
else
|
||||||
{
|
{
|
||||||
std::weak_ptr<PeerImp> weak = shared_from_this();
|
|
||||||
app_.getJobQueue ().addJob (
|
app_.getJobQueue ().addJob (
|
||||||
jtTRANSACTION, "recvTransaction->checkTransaction",
|
jtTRANSACTION, "recvTransaction->checkTransaction",
|
||||||
[weak, flags, checkSignature, stx] (Job&) {
|
[weak = std::weak_ptr<PeerImp>(shared_from_this()),
|
||||||
|
flags, checkSignature, stx] (Job&) {
|
||||||
if (auto peer = weak.lock())
|
if (auto peer = weak.lock())
|
||||||
peer->checkTransaction(flags,
|
peer->checkTransaction(flags,
|
||||||
checkSignature, stx);
|
checkSignature, stx);
|
||||||
|
|||||||
Reference in New Issue
Block a user