File tree Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Expand file tree Collapse file tree 1 file changed +7
-0
lines changed Original file line number Diff line number Diff line change 13
13
#include " primitives/transaction.h"
14
14
#include " utilstrencodings.h"
15
15
#include " dynode-sync.h"
16
+ #include " spork.h"
16
17
#ifdef ENABLE_WALLET
17
18
#include " wallet/wallet.h"
18
19
#endif
@@ -47,6 +48,9 @@ UniValue createrawbdapaccount(const JSONRPCRequest& request)
47
48
throw std::runtime_error (" Error: Cannot create BDAP Objects while wallet is not synced." );
48
49
}
49
50
51
+ if (!sporkManager.IsSporkActive (SPORK_30_ACTIVATE_BDAP))
52
+ throw std::runtime_error (" BDAP_ADD_PUBLIC_ENTRY_RPC_ERROR: ERRCODE: 3000 - " + _ (" Can not create BDAP transactions until spork is active." ));
53
+
50
54
// Format object and domain names to lower case.
51
55
std::string strObjectID = request.params [0 ].get_str ();
52
56
ToLowerCase (strObjectID);
@@ -198,6 +202,9 @@ UniValue sendandpayrawbdapaccount(const JSONRPCRequest& request)
198
202
throw std::runtime_error (" Error: Cannot create BDAP Objects while wallet is not synced." );
199
203
}
200
204
205
+ if (!sporkManager.IsSporkActive (SPORK_30_ACTIVATE_BDAP))
206
+ throw std::runtime_error (" BDAP_ADD_PUBLIC_ENTRY_RPC_ERROR: ERRCODE: 3000 - " + _ (" Can not create BDAP transactions until spork is active." ));
207
+
201
208
CMutableTransaction mtx;
202
209
std::string strHexIn = request.params [0 ].get_str ();
203
210
if (!DecodeHexTx (mtx, strHexIn))
You can’t perform that action at this time.
0 commit comments