takeshi
  • Member for 5 years, 7 months
  • Last seen more than a month ago
Using require or modifier?
4 votes

As Prashant Prabhakar Singh pointed out there is no difference in terms of gas usage. But keep in mind that modifiers may add to stack as it is illustrated in this solidity github issue. If you get ...

View answer
What are truffle migrations?
8 votes

Here is an example of a real use case of Truffle migrations. I have a storage contract and an interface contract. The interface needs to know where the storage is and the storage needs to grant ...

View answer
Cannot get Oracalize to work on Ropsten
0 votes

From Oraclize gitter as of 28th Jan 2018: ...experiencing some issues on ropsten recently, if you could try on a different test network this might help... Had the same issue on Ropsten. Kovan ...

View answer
What is an Ethereum contract?
0 votes

Here smart contracts explained to a non-programmer: ...Smart contract is like a web site. A blockchain address may belong to a program. A program then is called a smart contract. It is called a ...

View answer
How to monitor and auto-restart geth with monit?
2 votes

I did find a temporary working solution. It restarts geth just fine and sends alerts. But if you want to stop geth here you'll have to unmonitor it first with sudo monit unmonitor geth and then ...

View answer
How to run geth at 512Mb RAM Digital Ocean droplet?
Accepted answer
11 votes

It seems like 2 Gigs of swap and swappiness 30 is enough to run geth with no crashes with just 512 Mb of RAM. It is almost 2 months now. I'm in full sync (block 3097083). And had no crashes ever. So ...

View answer
Cannot catch every event (logs) from contract - catch a couple of random events instead
Accepted answer
1 votes

Just needed to add receipt = self.c.eth_getTransactionReceipt(tx). I guess it insures that the transaction is mined. Now it catches all 100 events. I've also tried to add a timer after every ...

View answer
populus OSError: [Errno 2] No such file or directory
Accepted answer
2 votes

After installing some other tools (like EthereumJS testrpc) the problem was solved by itself. I guess it was solc compiler which wasn't installed properly on my computer. Used to build solidity ...

View answer