1

While working on the ethereum , I come out with the issue of out of memory because of multiple transaction execution concurrently . The main reason was , i was unlocking account of that user every time which take too much of memory , if i do contract function execute (transaction) without unlocking the account in code and unlock account in geth by

personal.unlockAccount("address","password")

and then run transaction it execute smoothly over 500 transaction / sec . How can i unlock account everytime or give me better solution how to unlock account so that i can overcome with out off memory problem ?

4
  • Refer to the usage of the password file and --password in ethereum.stackexchange.com/questions/9178/… Jan 16, 2017 at 5:50
  • @BokkyPooBah can it will we possible that geth is running and when a new account create , how it can be unlock automatically . So that i have to not unlock account everytime when i run code of contract. Jan 16, 2017 at 6:04
  • @BokkyPooBah geth --unlock firstaddress,secondaddress,.. --password <passwordFile> will unlock all address written here and If i want the newAddress also unlock what should i do so that it will we also get unlock . Jan 16, 2017 at 6:31
  • doing that is a potential risk, you will have to figure out a way if you actually want to use this in production right?
    – niksmac
    Jan 16, 2017 at 8:41

1 Answer 1

0

What about using signed transactions?

With ethereumjs-tx you can sign transaction using the public key generated by geth.

You will no longer need to either manually or programmatically unlock accounts.

You then use web3.eth.sendRawTransaction to submit transactions.

1
  • if i need contract and execute contract function then ? Jan 17, 2017 at 5:18

Not the answer you're looking for? Browse other questions tagged or ask your own question.