MCPcopy Create free account
hub / github.com/citp/BlockSci / push

Method push

tools/parser/block_processor.cpp:545–555  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

543 StepNum stepNum;
544
545 void push(RawTransaction *tx) {
546 using namespace std::chrono_literals;
547 while (!nextQueue->push(tx)) {
548 if (nextDone && *nextDone) {
549 // Error: next ProcessStep finished before all items were queued
550 throw NextQueueFinishedEarlyException();
551 }
552 nextWaitCount++;
553 std::this_thread::sleep_for(5ms);
554 }
555 }
556
557 void linkBack(QueueStage &prevStage) {
558 // Link the queue- and done-pointers for the previous queue to this object's variables

Callers 1

addNewBlocksMethod · 0.80

Tested by

no test coverage detected