user323: The "importprivkey" API call allows one to import a private key and save it with a label. Is the "label" in the API call synonymous with an account used in the wallet?

user2343: Though the terminiology is unclear, in code "label" and "account" are the same thing:
importprivkey function (src/rpcdump.cpp):
pwalletMain->SetAddressBookName(vchAddress, strLabel);

from getnewaddress function (src/rpcwallet.cpp):
pwalletMain->SetAddressBookName(keyID, strAccount);


323: <p>The "<a href="https://en.bitcoin.it/wiki/Original_Bitcoin_client/API_calls_list">importprivkey</a>" API call allows one to import a private key and save it with a label. Is the "label" in the API call synonymous with an account used in the wallet?</p>
 2343: <p>Though the terminiology is unclear, in code "label" and "account" are the same thing:</p>

<p><code>importprivkey</code> function (<a href="https://github.com/bitcoin/bitcoin/blob/738835d7b8ab80bd0812805f197471c54c72d7f9/src/rpcdump.cpp#L60"><code>src/rpcdump.cpp</code></a>):</p>

<pre><code>pwalletMain-&gt;SetAddressBookName(vchAddress, strLabel);
</code></pre>

<p>from <code>getnewaddress</code> function (<a href="https://github.com/bitcoin/bitcoin/blob/ad525e9c8fa2b15f1afe6b7284de638a090e891a/src/rpcwallet.cpp#L112"><code>src/rpcwallet.cpp</code></a>):</p>

<pre><code>pwalletMain-&gt;SetAddressBookName(keyID, strAccount);
</code></pre>
