I was able to deploy contract that requires more gas than default Ropsten block gas limit: https://ropsten.etherscan.io/tx/0x7c40cd2c539c03d110da8988641518ff6ff907a284f5074ed3d8517eb80b51f9 (5594037 > 4.7M)
For some reason i can't do the same again with:
$geth --verbosity "4" -rpc --nousb --ipcdisable --rpcaddr "127.0.0.1" --rpccorsdomain "" --rpcvhosts "" --syncmode "fast" --rpcapi="db,personal,eth,net,web3,admin" --cache=2048 --testnet --mine --targetgaslimit 7000000
Does --targetgaslimit work for Ropsten (not private network)? How can i deploy it without splitting/using libraries/etc?
Currently i'm getting Remix deploy error (connected to Web3 provider):
creation of Contract errored: exceeds block gas limit
PS. I did it few times so i'm absolutely sure it's doable. But i can't understand what affects this and how can i deploy it intentionally.