diff --git a/include/xrpl/core/Coro.ipp b/include/xrpl/core/Coro.ipp index b397fcd65c..36b1ce9a71 100644 --- a/include/xrpl/core/Coro.ipp +++ b/include/xrpl/core/Coro.ipp @@ -8,14 +8,16 @@ JobQueue::Coro::Coro(Coro_create_t, JobQueue& jq, JobType type, std::string cons , type_(type) , name_(name) , running_(false) - , coro_([this, fn = std::forward(f)](boost::coroutines2::coroutine::push_type& do_yield) { - yield_ = &do_yield; - yield(); - fn(shared_from_this()); + , coro_( + boost::context::fixedsize_stack(4 * 1024 * 1024), + [this, fn = std::forward(f)](boost::coroutines2::coroutine::push_type& do_yield) { + yield_ = &do_yield; + yield(); + fn(shared_from_this()); #ifndef NDEBUG - finished_ = true; + finished_ = true; #endif - }) + }) { }