File tree Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Expand file tree Collapse file tree 1 file changed +6
-2
lines changed Original file line number Diff line number Diff line change @@ -676,8 +676,12 @@ UniValue getblocktemplate(const JSONRPCRequest& request)
676
676
nSigOpLimit /= WITNESS_SCALE_FACTOR;
677
677
}
678
678
result.push_back (Pair (" sigoplimit" , nSigOpLimit));
679
- result.push_back (Pair (" sizelimit" , (int64_t )MAX_BLOCK_SERIALIZED_SIZE));
680
- result.push_back (Pair (" weightlimit" , (int64_t )MAX_BLOCK_WEIGHT));
679
+ if (fPreSegWit ) {
680
+ result.push_back (Pair (" sizelimit" , (int64_t )MAX_BLOCK_BASE_SIZE));
681
+ } else {
682
+ result.push_back (Pair (" sizelimit" , (int64_t )MAX_BLOCK_SERIALIZED_SIZE));
683
+ result.push_back (Pair (" weightlimit" , (int64_t )MAX_BLOCK_WEIGHT));
684
+ }
681
685
result.push_back (Pair (" curtime" , pblock->GetBlockTime ()));
682
686
result.push_back (Pair (" bits" , strprintf (" %08x" , pblock->nBits )));
683
687
result.push_back (Pair (" height" , (int64_t )(pindexPrev->nHeight +1 )));
You can’t perform that action at this time.
0 commit comments