Construct a new block template with all of the transactions and calculate the order in which they are selected. Returns the sequence number (lower = selected earlier) with which each transaction was selected, indexed by txid, or an empty map if it cannot be calculated.
Declared in <node/mini_miner.h>
std::map<Txid, uint32_t>
Linearize();
A map from txid to selection sequence number, or an empty map if it cannot be calculated.