create method name changed to insert

pull/1/head
moneroexamples 8 years ago
parent d8570d8c30
commit 6f7c582b4a

@ -229,7 +229,7 @@ public:
} }
uint64_t uint64_t
create(const string& address, const uint64_t& scanned_block_height = 0) insert(const string& address, const uint64_t& scanned_block_height = 0)
{ {
static shared_ptr<Query> query; static shared_ptr<Query> query;

@ -139,7 +139,7 @@ public:
// `canned_block_height` in mysql Accounts table. // `canned_block_height` in mysql Accounts table.
uint64_t current_blkchain_height = get_current_blockchain_height() - 1; uint64_t current_blkchain_height = get_current_blockchain_height() - 1;
if ((acc_id = xmr_accounts->create(xmr_address, current_blkchain_height)) != 0) if ((acc_id = xmr_accounts->insert(xmr_address, current_blkchain_height)) != 0)
{ {
// select newly created account // select newly created account
if (xmr_accounts->select(acc_id, acc)) if (xmr_accounts->select(acc_id, acc))

Loading…
Cancel
Save