rpcmining.cpp 19 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241242243244245246247248249250251252253254255256257258259260261262263264265266267268269270271272273274275276277278279280281282283284285286287288289290291292293294295296297298299300301302303304305306307308309310311312313314315316317318319320321322323324325326327328329330331332333334335336337338339340341342343344345346347348349350351352353354355356357358359360361362363364365366367368369370371372373374375376377378379380381382383384385386387388389390391392393394395396397398399400401402403404405406407408409410411412413414415416417418419420421422423424425426427428429430431432433434435436437438439440441442443444445446447448449450451452453454455456457458459460461462463464465466467468469470471472473474475476477478479480481482483484485486487488489490491492493494495496497498499500501502503504505506507508509510511512513514515516517518519520521522523524525526527528529530531532533534535536537538539540541542543544545546547548549550551552
  1. // ECOin - Copyright (c) - 2014/2022 - GPLv3 - epsylon@riseup.net (https://03c8.net)
  2. #include "main.h"
  3. #include "db.h"
  4. #include "txdb.h"
  5. #include "init.h"
  6. #include "miner.h"
  7. #include "ecoinrpc.h"
  8. using namespace json_spirit;
  9. using namespace std;
  10. extern unsigned int nStakeTargetSpacing;
  11. extern void ScriptPubKeyToJSON(const CScript& scriptPubKey, Object& out, bool fIncludeHex);
  12. Value getsubsidy(const Array& params, bool fHelp)
  13. {
  14. if (fHelp || params.size() > 1)
  15. throw runtime_error(
  16. "getsubsidy [nTarget]\n"
  17. "Returns proof-of-work subsidy value for the specified value of target.");
  18. unsigned int nBits = 0;
  19. if (params.size() != 0)
  20. {
  21. //CBigNum bnTarget(uint256(params[0].get_str()));
  22. //nBits = bnTarget.GetCompact();
  23. }
  24. else
  25. {
  26. //nBits = GetNextTargetRequired(pindexBest, false);
  27. }
  28. return 0;
  29. }
  30. Value getmininginfo(const Array& params, bool fHelp)
  31. {
  32. if (fHelp || params.size() != 0)
  33. throw runtime_error(
  34. "getmininginfo\n"
  35. "Returns an object containing mining-related information.");
  36. uint64_t nMinWeight = 0, nMaxWeight = 0, nWeight = 0;
  37. pwalletMain->GetStakeWeight(*pwalletMain, nMinWeight, nMaxWeight, nWeight);
  38. Object obj, diff, weight;
  39. obj.push_back(Pair("blocks", (int)nBestHeight));
  40. obj.push_back(Pair("currentblocksize",(uint64_t)nLastBlockSize));
  41. obj.push_back(Pair("currentblocktx",(uint64_t)nLastBlockTx));
  42. diff.push_back(Pair("proof-of-work", GetDifficulty()));
  43. diff.push_back(Pair("proof-of-stake", GetDifficulty(GetLastBlockIndex(pindexBest, true))));
  44. diff.push_back(Pair("search-interval", (int)nLastCoinStakeSearchInterval));
  45. obj.push_back(Pair("difficulty", diff));
  46. obj.push_back(Pair("blockvalue", (uint64_t)GetProofOfWorkReward(GetLastBlockIndex(pindexBest, false)->nHeight+1, GetLastBlockIndex(pindexBest, false)->GetBlockHash())));
  47. //obj.push_back(Pair("netmhashps", GetPoWMHashPS()));
  48. obj.push_back(Pair("netmhashps", GetRandHash));
  49. obj.push_back(Pair("netstakeweight", GetPoSKernelPS()));
  50. obj.push_back(Pair("errors", GetWarnings("statusbar")));
  51. obj.push_back(Pair("pooledtx", (uint64_t)mempool.size()));
  52. weight.push_back(Pair("minimum", (uint64_t)nMinWeight));
  53. weight.push_back(Pair("maximum", (uint64_t)nMaxWeight));
  54. weight.push_back(Pair("combined", (uint64_t)nWeight));
  55. obj.push_back(Pair("stakeweight", weight));
  56. obj.push_back(Pair("stakeinterest", (uint64_t)GetProofOfStakeReward(0, GetLastBlockIndex(pindexBest, true)->nBits, GetLastBlockIndex(pindexBest, true)->nTime, true)));
  57. obj.push_back(Pair("testnet", fTestNet));
  58. return obj;
  59. }
  60. Value getstakinginfo(const Array& params, bool fHelp)
  61. {
  62. if (fHelp || params.size() != 0)
  63. throw runtime_error(
  64. "getstakinginfo\n"
  65. "Returns an object containing staking-related information.");
  66. uint64_t nMinWeight = 0, nMaxWeight = 0, nWeight = 0;
  67. pwalletMain->GetStakeWeight(*pwalletMain, nMinWeight, nMaxWeight, nWeight);
  68. uint64_t nNetworkWeight = GetPoSKernelPS();
  69. bool staking = nLastCoinStakeSearchInterval && nWeight;
  70. int nExpectedTime = staking ? (nStakeTargetSpacing * nNetworkWeight / nWeight) : -1;
  71. Object obj;
  72. obj.push_back(Pair("enabled", GetBoolArg("-staking", true)));
  73. obj.push_back(Pair("staking", staking));
  74. obj.push_back(Pair("errors", GetWarnings("statusbar")));
  75. obj.push_back(Pair("currentblocksize", (uint64_t)nLastBlockSize));
  76. obj.push_back(Pair("currentblocktx", (uint64_t)nLastBlockTx));
  77. obj.push_back(Pair("pooledtx", (uint64_t)mempool.size()));
  78. obj.push_back(Pair("difficulty", GetDifficulty(GetLastBlockIndex(pindexBest, true))));
  79. obj.push_back(Pair("search-interval", (int)nLastCoinStakeSearchInterval));
  80. obj.push_back(Pair("weight", (uint64_t)nWeight));
  81. obj.push_back(Pair("netstakeweight", (uint64_t)nNetworkWeight));
  82. obj.push_back(Pair("expectedtime", nExpectedTime));
  83. return obj;
  84. }
  85. Value getworkex(const Array& params, bool fHelp)
  86. {
  87. if (fHelp || params.size() > 2)
  88. throw runtime_error(
  89. "getworkex [data, coinbase]\n"
  90. "If [data, coinbase] is not specified, returns extended work data.\n"
  91. );
  92. if (vNodes.empty())
  93. throw JSONRPCError(-9, "Ecoin is not connected!");
  94. if (IsInitialBlockDownload())
  95. throw JSONRPCError(-10, "Ecoin is downloading blocks...");
  96. typedef map<uint256, pair<CBlock*, CScript> > mapNewBlock_t;
  97. static mapNewBlock_t mapNewBlock;
  98. static vector<CBlock*> vNewBlock;
  99. static CReserveKey reservekey(pwalletMain);
  100. if (params.size() == 0)
  101. {
  102. // Update block
  103. static unsigned int nTransactionsUpdatedLast;
  104. static CBlockIndex* pindexPrev;
  105. static int64 nStart;
  106. static CBlock* pblock;
  107. if (pindexPrev != pindexBest ||
  108. (nTransactionsUpdated != nTransactionsUpdatedLast && GetTime() - nStart > 60))
  109. {
  110. if (pindexPrev != pindexBest)
  111. {
  112. // Deallocate old blocks since they're obsolete now
  113. mapNewBlock.clear();
  114. BOOST_FOREACH(CBlock* pblock, vNewBlock)
  115. delete pblock;
  116. vNewBlock.clear();
  117. }
  118. nTransactionsUpdatedLast = nTransactionsUpdated;
  119. pindexPrev = pindexBest;
  120. nStart = GetTime();
  121. // Create new block
  122. pblock = CreateNewBlock(pwalletMain);
  123. if (!pblock)
  124. throw JSONRPCError(-7, "Out of memory");
  125. vNewBlock.push_back(pblock);
  126. }
  127. // Update nTime
  128. pblock->nTime = max(pindexPrev->GetMedianTimePast()+1, GetAdjustedTime());
  129. pblock->nNonce = 0;
  130. // Update nExtraNonce
  131. static unsigned int nExtraNonce = 0;
  132. IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
  133. // Save
  134. mapNewBlock[pblock->hashMerkleRoot] = make_pair(pblock, pblock->vtx[0].vin[0].scriptSig);
  135. // Prebuild hash buffers
  136. char pmidstate[32];
  137. char pdata[128];
  138. char phash1[64];
  139. FormatHashBuffers(pblock, pmidstate, pdata, phash1);
  140. uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
  141. CTransaction coinbaseTx = pblock->vtx[0];
  142. std::vector<uint256> merkle = pblock->GetMerkleBranch(0);
  143. Object result;
  144. result.push_back(Pair("data", HexStr(BEGIN(pdata), END(pdata))));
  145. result.push_back(Pair("target", HexStr(BEGIN(hashTarget), END(hashTarget))));
  146. CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
  147. ssTx << coinbaseTx;
  148. result.push_back(Pair("coinbase", HexStr(ssTx.begin(), ssTx.end())));
  149. Array merkle_arr;
  150. BOOST_FOREACH(uint256 merkleh, merkle) {
  151. merkle_arr.push_back(HexStr(BEGIN(merkleh), END(merkleh)));
  152. }
  153. result.push_back(Pair("merkle", merkle_arr));
  154. return result;
  155. }
  156. else
  157. {
  158. // Parse parameters
  159. vector<unsigned char> vchData = ParseHex(params[0].get_str());
  160. vector<unsigned char> coinbase;
  161. if(params.size() == 2)
  162. coinbase = ParseHex(params[1].get_str());
  163. if (vchData.size() != 128)
  164. throw JSONRPCError(-8, "Invalid parameter");
  165. CBlock* pdata = (CBlock*)&vchData[0];
  166. // Byte reverse
  167. for (int i = 0; i < 128/4; i++)
  168. ((unsigned int*)pdata)[i] = ByteReverse(((unsigned int*)pdata)[i]);
  169. // Get saved block
  170. if (!mapNewBlock.count(pdata->hashMerkleRoot))
  171. return false;
  172. CBlock* pblock = mapNewBlock[pdata->hashMerkleRoot].first;
  173. pblock->nTime = pdata->nTime;
  174. pblock->nNonce = pdata->nNonce;
  175. if(coinbase.size() == 0)
  176. pblock->vtx[0].vin[0].scriptSig = mapNewBlock[pdata->hashMerkleRoot].second;
  177. else
  178. CDataStream(coinbase, SER_NETWORK, PROTOCOL_VERSION) >> pblock->vtx[0]; // FIXME - HACK!
  179. pblock->hashMerkleRoot = pblock->BuildMerkleTree();
  180. return CheckWork(pblock, *pwalletMain, reservekey);
  181. }
  182. }
  183. Value getwork(const Array& params, bool fHelp)
  184. {
  185. if (fHelp || params.size() > 1)
  186. throw runtime_error(
  187. "getwork [data]\n"
  188. "If [data] is not specified, returns formatted hash data to work on:\n"
  189. " \"midstate\" : precomputed hash state after hashing the first half of the data (DEPRECATED)\n" // deprecated
  190. " \"data\" : block data\n"
  191. " \"hash1\" : formatted hash buffer for second hash (DEPRECATED)\n" // deprecated
  192. " \"target\" : little endian hash target\n"
  193. "If [data] is specified, tries to solve the block and returns true if it was successful.");
  194. if (vNodes.empty())
  195. throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Ecoin is not connected!");
  196. if (IsInitialBlockDownload())
  197. throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Ecoin is downloading blocks...");
  198. typedef map<uint256, pair<CBlock*, CScript> > mapNewBlock_t;
  199. static mapNewBlock_t mapNewBlock; // FIXME: thread safety
  200. static vector<CBlock*> vNewBlock;
  201. static CReserveKey reservekey(pwalletMain);
  202. if (params.size() == 0)
  203. {
  204. // Update block
  205. static unsigned int nTransactionsUpdatedLast;
  206. static CBlockIndex* pindexPrev;
  207. static int64 nStart;
  208. static CBlock* pblock;
  209. if (pindexPrev != pindexBest ||
  210. (nTransactionsUpdated != nTransactionsUpdatedLast && GetTime() - nStart > 60))
  211. {
  212. if (pindexPrev != pindexBest)
  213. {
  214. // Deallocate old blocks since they're obsolete now
  215. mapNewBlock.clear();
  216. BOOST_FOREACH(CBlock* pblock, vNewBlock)
  217. delete pblock;
  218. vNewBlock.clear();
  219. }
  220. // Clear pindexPrev so future getworks make a new block, despite any failures from here on
  221. pindexPrev = NULL;
  222. // Store the pindexBest used before CreateNewBlock, to avoid races
  223. nTransactionsUpdatedLast = nTransactionsUpdated;
  224. CBlockIndex* pindexPrevNew = pindexBest;
  225. nStart = GetTime();
  226. // Create new block
  227. pblock = CreateNewBlock(pwalletMain);
  228. if (!pblock)
  229. throw JSONRPCError(RPC_OUT_OF_MEMORY, "Out of memory");
  230. vNewBlock.push_back(pblock);
  231. // Need to update only after we know CreateNewBlock succeeded
  232. pindexPrev = pindexPrevNew;
  233. }
  234. // Update nTime
  235. pblock->UpdateTime(pindexPrev);
  236. pblock->nNonce = 0;
  237. // Update nExtraNonce
  238. static unsigned int nExtraNonce = 0;
  239. IncrementExtraNonce(pblock, pindexPrev, nExtraNonce);
  240. // Save
  241. mapNewBlock[pblock->hashMerkleRoot] = make_pair(pblock, pblock->vtx[0].vin[0].scriptSig);
  242. // Pre-build hash buffers
  243. char pmidstate[32];
  244. char pdata[128];
  245. char phash1[64];
  246. FormatHashBuffers(pblock, pmidstate, pdata, phash1);
  247. uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
  248. Object result;
  249. result.push_back(Pair("midstate", HexStr(BEGIN(pmidstate), END(pmidstate)))); // deprecated
  250. result.push_back(Pair("data", HexStr(BEGIN(pdata), END(pdata))));
  251. result.push_back(Pair("hash1", HexStr(BEGIN(phash1), END(phash1)))); // deprecated
  252. result.push_back(Pair("target", HexStr(BEGIN(hashTarget), END(hashTarget))));
  253. return result;
  254. }
  255. else
  256. {
  257. // Parse parameters
  258. vector<unsigned char> vchData = ParseHex(params[0].get_str());
  259. if (vchData.size() != 128)
  260. throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid parameter");
  261. CBlock* pdata = (CBlock*)&vchData[0];
  262. // Byte reverse
  263. for (int i = 0; i < 128/4; i++)
  264. ((unsigned int*)pdata)[i] = ByteReverse(((unsigned int*)pdata)[i]);
  265. // Get saved block
  266. if (!mapNewBlock.count(pdata->hashMerkleRoot))
  267. return false;
  268. CBlock* pblock = mapNewBlock[pdata->hashMerkleRoot].first;
  269. pblock->nTime = pdata->nTime;
  270. pblock->nNonce = pdata->nNonce;
  271. pblock->vtx[0].vin[0].scriptSig = mapNewBlock[pdata->hashMerkleRoot].second;
  272. pblock->hashMerkleRoot = pblock->BuildMerkleTree();
  273. return CheckWork(pblock, *pwalletMain, reservekey);
  274. }
  275. }
  276. Value getblocktemplate(const Array& params, bool fHelp)
  277. {
  278. if (fHelp || params.size() > 1)
  279. throw runtime_error(
  280. "getblocktemplate [params]\n"
  281. "Returns data needed to construct a block to work on:\n"
  282. " \"version\" : block version\n"
  283. " \"previousblockhash\" : hash of current highest block\n"
  284. " \"transactions\" : contents of non-coinbase transactions that should be included in the next block\n"
  285. " \"coinbaseaux\" : data that should be included in coinbase\n"
  286. " \"proofoftx\" : proof-of-transaction value"
  287. " \"proofoftxwinner\" : proof-of-transaction winner"
  288. " \"coinbasevalue\" : maximum allowable input to coinbase transaction, including the generation award and transaction fees\n"
  289. " \"target\" : hash target\n"
  290. " \"mintime\" : minimum timestamp appropriate for next block\n"
  291. " \"curtime\" : current timestamp\n"
  292. " \"mutable\" : list of ways the block template may be changed\n"
  293. " \"noncerange\" : range of valid nonces\n"
  294. " \"sigoplimit\" : limit of sigops in blocks\n"
  295. " \"sizelimit\" : limit of block size\n"
  296. " \"bits\" : compressed target of next block\n"
  297. " \"height\" : height of the next block\n"
  298. "See https://en.ecoin.it/wiki/BIP_0022 for full specification.");
  299. std::string strMode = "template";
  300. if (params.size() > 0)
  301. {
  302. const Object& oparam = params[0].get_obj();
  303. const Value& modeval = find_value(oparam, "mode");
  304. if (modeval.type() == str_type)
  305. strMode = modeval.get_str();
  306. else if (modeval.type() == null_type)
  307. {
  308. /* Do nothing */
  309. }
  310. else
  311. throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode");
  312. }
  313. if (strMode != "template")
  314. throw JSONRPCError(RPC_INVALID_PARAMETER, "Invalid mode");
  315. if (vNodes.empty())
  316. throw JSONRPCError(RPC_CLIENT_NOT_CONNECTED, "Ecoin is not connected!");
  317. if (IsInitialBlockDownload())
  318. throw JSONRPCError(RPC_CLIENT_IN_INITIAL_DOWNLOAD, "Ecoin is downloading blocks...");
  319. static CReserveKey reservekey(pwalletMain);
  320. // Update block
  321. static unsigned int nTransactionsUpdatedLast;
  322. static CBlockIndex* pindexPrev;
  323. static int64 nStart;
  324. static CBlock* pblock;
  325. if (pindexPrev != pindexBest ||
  326. (nTransactionsUpdated != nTransactionsUpdatedLast && GetTime() - nStart > 5))
  327. {
  328. // Clear pindexPrev so future calls make a new block, despite any failures from here on
  329. pindexPrev = NULL;
  330. // Store the pindexBest used before CreateNewBlock, to avoid races
  331. nTransactionsUpdatedLast = nTransactionsUpdated;
  332. CBlockIndex* pindexPrevNew = pindexBest;
  333. nStart = GetTime();
  334. // Create new block
  335. if(pblock)
  336. {
  337. delete pblock;
  338. pblock = NULL;
  339. }
  340. pblock = CreateNewBlock(pwalletMain);
  341. if (!pblock)
  342. throw JSONRPCError(RPC_OUT_OF_MEMORY, "Out of memory");
  343. // Need to update only after we know CreateNewBlock succeeded
  344. pindexPrev = pindexPrevNew;
  345. }
  346. // Update nTime
  347. pblock->UpdateTime(pindexPrev);
  348. pblock->nNonce = 0;
  349. Array transactions;
  350. map<uint256, int64_t> setTxIndex;
  351. int i = 0;
  352. CTxDB txdb("r");
  353. BOOST_FOREACH (CTransaction& tx, pblock->vtx)
  354. {
  355. uint256 txHash = tx.GetHash();
  356. setTxIndex[txHash] = i++;
  357. if (tx.IsCoinBase() || tx.IsCoinStake())
  358. continue;
  359. Object entry;
  360. CDataStream ssTx(SER_NETWORK, PROTOCOL_VERSION);
  361. ssTx << tx;
  362. entry.push_back(Pair("data", HexStr(ssTx.begin(), ssTx.end())));
  363. entry.push_back(Pair("hash", txHash.GetHex()));
  364. MapPrevTx mapInputs;
  365. map<uint256, CTxIndex> mapUnused;
  366. bool fInvalid = false;
  367. if (tx.FetchInputs(txdb, mapUnused, false, false, mapInputs, fInvalid))
  368. {
  369. entry.push_back(Pair("fee", (int64_t)(tx.GetValueIn(mapInputs) - tx.GetValueOut())));
  370. Array deps;
  371. BOOST_FOREACH (MapPrevTx::value_type& inp, mapInputs)
  372. {
  373. if (setTxIndex.count(inp.first))
  374. deps.push_back(setTxIndex[inp.first]);
  375. }
  376. entry.push_back(Pair("depends", deps));
  377. int64_t nSigOps = tx.GetLegacySigOpCount();
  378. nSigOps += tx.GetP2SHSigOpCount(mapInputs);
  379. entry.push_back(Pair("sigops", nSigOps));
  380. }
  381. transactions.push_back(entry);
  382. }
  383. Object aux;
  384. aux.push_back(Pair("flags", HexStr(COINBASE_FLAGS.begin(), COINBASE_FLAGS.end())));
  385. uint256 hashTarget = CBigNum().SetCompact(pblock->nBits).getuint256();
  386. static Array aMutable;
  387. if (aMutable.empty())
  388. {
  389. aMutable.push_back("time");
  390. aMutable.push_back("transactions");
  391. aMutable.push_back("prevblock");
  392. }
  393. Object result;
  394. result.push_back(Pair("version", pblock->nVersion));
  395. result.push_back(Pair("previousblockhash", pblock->hashPrevBlock.GetHex()));
  396. result.push_back(Pair("transactions", transactions));
  397. result.push_back(Pair("coinbaseaux", aux));
  398. if (pblock->vtx[0].vout.size() > 1)
  399. {
  400. const CTxOut& txout = pblock->vtx[0].vout[1];
  401. Object script;
  402. ScriptPubKeyToJSON(txout.scriptPubKey, script, true);
  403. result.push_back(Pair("coinbasevalue", (int64_t)pblock->vtx[0].vout[0].nValue + (int64_t)pblock->vtx[0].vout[1].nValue));
  404. result.push_back(Pair("proofoftx", (int64_t)pblock->vtx[0].vout[1].nValue));
  405. result.push_back(Pair("proofoftxwinner", script));
  406. }
  407. else
  408. {
  409. result.push_back(Pair("coinbasevalue", (int64_t)pblock->vtx[0].vout[0].nValue));
  410. result.push_back(Pair("proofoftx", (int64_t)0));
  411. result.push_back(Pair("proofoftxwinner", 0));
  412. }
  413. result.push_back(Pair("target", hashTarget.GetHex()));
  414. result.push_back(Pair("mintime", (int64_t)pindexPrev->GetMedianTimePast()+1));
  415. result.push_back(Pair("mutable", aMutable));
  416. result.push_back(Pair("noncerange", "00000000ffffffff"));
  417. result.push_back(Pair("sigoplimit", (int64_t)MAX_BLOCK_SIGOPS));
  418. result.push_back(Pair("sizelimit", (int64_t)MAX_BLOCK_SIZE));
  419. result.push_back(Pair("curtime", (int64_t)pblock->nTime));
  420. result.push_back(Pair("bits", HexBits(pblock->nBits)));
  421. result.push_back(Pair("height", (int64_t)(pindexPrev->nHeight+1)));
  422. return result;
  423. }
  424. Value submitblock(const Array& params, bool fHelp)
  425. {
  426. if (fHelp || params.size() < 1 || params.size() > 2)
  427. throw runtime_error(
  428. "submitblock <hex data> [optional-params-obj]\n"
  429. "[optional-params-obj] parameter is currently ignored.\n"
  430. "Attempts to submit new block to network.\n");
  431. vector<unsigned char> blockData(ParseHex(params[0].get_str()));
  432. CDataStream ssBlock(blockData, SER_NETWORK, PROTOCOL_VERSION);
  433. CBlock block;
  434. try {
  435. ssBlock >> block;
  436. }
  437. catch (std::exception &e) {
  438. throw JSONRPCError(RPC_DESERIALIZATION_ERROR, "Block decode failed");
  439. }
  440. bool fAccepted = ProcessBlock(NULL, &block);
  441. if (!fAccepted)
  442. return "rejected";
  443. return Value::null;
  444. }