polyswarm / relay

Sidechain relay for PolySwarm, the first decentralized threat intelligence market.
https://polyswarm.io
GNU General Public License v3.0
2 stars 1 forks source link

Fix/nonce resync #68

Closed ceseale closed 5 years ago

ceseale commented 5 years ago

Address #54

ceseale commented 5 years ago

@mjkoo @Rizato could you guys take a look at this branch? I'm trying to fix WARN [web3::transports::ws] Sending a response to deallocated channel: Ok([Ok(String("0x0"))]) That throws when trying to get the new nonce after desync is detected.

I'm pretty sure it's because of the way initialize the struct here: https://github.com/polyswarm/relay/blob/0322f8ce3555ae2c8718128b158db18c8c0e93b5/src/transaction.rs#L258-L261

Rizato commented 5 years ago

Cancelled run on 379df3e because a20a14f was right after.

ceseale commented 5 years ago

Tested by removing https://github.com/polyswarm/relay/blob/29877d53c28f37fa7605e60321195d7a5fac6a21/src/transaction.rs#L139