These are chat archives for Nethereum/Nethereum

3rd
Sep 2018
Psilon
@Pzixel
Sep 03 2018 07:54
Hey there!
@juanfranblanco is it possible to get current network max gas?
I currently have a constant but i'd like to get this info from bc itself
I mean I could get gasLimit from genesis and use it in further transactions
Psilon
@Pzixel
Sep 03 2018 08:18
And is there any mapping solidity -> Nethereum like uint64 -> ulong?
to get the "latest" block and use Block.GasLimit
I have just checked in that overload to limit the size of the return
you can use now in nuget
this
And is there any mapping solidity -> Nethereum like uint64 -> ulong?
what do you mean?
uint64 in solidity is matched to uint64 / ulong in Nethereum
alphasignal
@alphasignal
Sep 03 2018 09:17
@juanfranblanco why does the library at some point just terminate an open web3 connection, and then I get a 'RpcClientUnknownException'....this happens when I subscribe to a few events, and then let a background thread check on these events every 2-3 seconds....after 12 hours or so the connection just seems to get dropped and I can even see that connections get re-negotiated (SSL handshake)....why would this be if there is constantly data going over the connection? Do you need to send the 'Connection: Keep-Alive' header during socket opening or am I able to use Websockets when connecting to Infura?
Juan Blanco
@juanfranblanco
Sep 03 2018 09:34
@alphasignal I don't know exactly what you are doing, but I can tell you to overcome the issues with dns caching / changes Nethereum changes the http client. You can check the issues raised on .net core and http.
This should not be a problem as http clients are switched every 60 seconds so it does not relate to your 12 hours problem
So a few questions..
Are you connecting locally or public Infura
if the latter this might be an issue with Infura and can ask them what is currently happening every 12 hours
Also connections are not kept open, so what you are seeing probable is your ssl cert being cached?
Nuke Dukem
@nuke001_gitlab
Sep 03 2018 09:40
Hi there! Could anyone please explain how do I send ETH, using web3 from HD wallet, if the total amount spread between deterministically generated addresses (like in bitcoin). Do I need to iterate through them by myself, or it's by somehow implemented in Nethereum.Web3?
Juan Blanco
@juanfranblanco
Sep 03 2018 09:45
you need to iterate through them as each one is a completely separate account
Nuke Dukem
@nuke001_gitlab
Sep 03 2018 09:46
@juanfranblanco Thanks! So receiver will have as many incoming transactions as many accounts I have, right?
Juan Blanco
@juanfranblanco
Sep 03 2018 09:50
yes correct
Nuke Dukem
@nuke001_gitlab
Sep 03 2018 09:57
@juanfranblanco Thank you, I appreciate your help!
Psilon
@Pzixel
Sep 03 2018 10:00

@juanfranblanco

what do you mean?

I currently have a dictionary
I wonder if I could reuse some existing one
alphasignal
@alphasignal
Sep 03 2018 10:13
@juanfranblanco thank you for your answer, I sent you a PM, I thought it would be easier instead of flooding the chat here
then you have in the same folder different implementations for different languages
Psilon
@Pzixel
Sep 03 2018 10:34
cool
thank you
and when outputArrayAsList is true?
I found that it differs for structs and call sites
not sure about exact rules though
Juan Blanco
@juanfranblanco
Sep 03 2018 10:37
this was intended for input / output
dotnet rev
@dotnetrev_gitlab
Sep 03 2018 10:45
I need to get address from Topics. But in topics address is left padded. How can I get proper address from topics. PLz help me
This is the address from topics
"0x0000000000000000000000002bbfc97a55119385d0dffe7dab8ba290d7f94894"
Juan Blanco
@juanfranblanco
Sep 03 2018 10:51
do you know your contract?
ie the event?
just use that to decode it
transactionReceipt.DecodeEvent (top of my head)
or you can use the Nethereum.ABI.Decoders.AddressTypeDecoder().Decode("string".HexToByteArray(), typeof(string));