blktmpl_getcapability: Treat "transactions" mutation the same as "transactions/add" per BIP 0023

This commit is contained in:
aalness
2014-01-19 06:19:06 +00:00
committed by Luke Dashjr
parent e3022229be
commit 6aa007da0c

View File

@@ -46,6 +46,8 @@ gbt_capabilities_t blktmpl_getcapability(const char *n) {
for (int i = 0; i < GBT_CAPABILITY_COUNT; ++i)
if (capnames[i] && !strcasecmp(n, capnames[i]))
return 1 << i;
if (!strcasecmp(n, "transactions"))
return BMM_TXNADD; // Odd one as it's overloaded w/"transactions/add" per spec
return 0;
}