MCPcopy Create free account
hub / github.com/WaykiChain/WaykiChain / NewAccount

Method NewAccount

src/tx/tx.cpp:313–317  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

311}
312
313shared_ptr<CAccount> CBaseTx::NewAccount(CCacheWrapper &cw, const CKeyID &keyid) {
314 shared_ptr<CAccount> spAccount = make_shared<CAccount>(keyid);
315 account_map.emplace(spAccount->keyid, spAccount);
316 return spAccount;
317}
318
319bool CBaseTx::SaveAllAccounts(CTxExecuteContext &context) {
320 for (auto item : account_map) {

Callers 5

CheckProposalMethod · 0.80
ExecuteProposalMethod · 0.80
setcodeMethod · 0.80
OperateAccountMethod · 0.80
TransferAccountAssetMethod · 0.80

Calls

no outgoing calls

Tested by

no test coverage detected