These are chat archives for Nethereum/Nethereum
I have one simple and basic question: For a given sender address, can there be more than one transaction state within one block? Meaning, for every state change, will it be in a separate block every time?
The reason I'm asking is, when I use:
public async Task getStoredStateName(HexBigInteger blockno, string blockhash)
myProjObj myContract = await initializeContract("0x12890d2cce102216644c59daE5baed380d84830c", "password");
BlockParameter bp = new BlockParameter(blockno);
var result = await myContract.contract.GetFunction("getName").CallAsync<string>(bp);
Console.WriteLine("Name:" + result);
Where the bp (blockparameter) has only the blockNumber and nothing else (couldn't find a way to pass the transaction hash). It does return me the correct state every time. But I need to make sure that this would work in all scenarios..
My code works locally but when I have Geth running on a server, I modify my code to point to the server, it fails. Can you please let me know if I am doing it correctly:
web3 = new Nethereum.Geth.Web3Geth(account, "http://10.20.11.28:8545");
For the standard Web3 - there is a setProvider to url: "ws://10.20.11.28:8546" - how do I set it for Web3Geth? May be that's the problem.
The error I get is: SocketException: No connection could be made because the target machine actively refused it 10.20.11.28:8545
But, when I try psping, I do get a response - which means no firewall blocking, and also geth is running on that server.