aboutsummaryrefslogtreecommitdiff
path: root/src/main.h
diff options
context:
space:
mode:
authorForrest Voight <forrest@forre.st>2012-01-14 18:51:52 -0500
committerForrest Voight <forrest@forre.st>2012-01-14 19:22:24 -0500
commit52a3d2635c417c8e2398d9d4853db938171d406b (patch)
treee5cecd765a59dcca04ad96d88ac94f922eb1b12c /src/main.h
parent9e8818ec9d01b3cf9e4aa601a96785c4fdc3f9b7 (diff)
downloadbitcoin-52a3d2635c417c8e2398d9d4853db938171d406b.tar.xz
Separated COINBASE_FLAGS out into main.h and made RPC getmemorypool return it
Diffstat (limited to 'src/main.h')
-rw-r--r--src/main.h6
1 files changed, 6 insertions, 0 deletions
diff --git a/src/main.h b/src/main.h
index 678c14cc39..be5f2f58a5 100644
--- a/src/main.h
+++ b/src/main.h
@@ -49,6 +49,12 @@ static const int fHaveUPnP = false;
#endif
+// Put "/P2SH/" in the coinbase so everybody can tell when
+// a majority of miners support it
+static const char* pszP2SH = "/P2SH/";
+static const CScript COINBASE_FLAGS = CScript() << std::vector<unsigned char>(pszP2SH, pszP2SH+strlen(pszP2SH));
+
+