-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Port latest changes from go-nitro till commit
64c4ee9
on November 15 (
#138) * Port latest changes from go-nitro till commit `880c8b50` on October 12 (#3) * Remove private key property from p2p message service * Add DEVELOPMENT.md file * Port latest changes from go-nitro till commit `ff84d606` on November 1 (#4) * Upgrade state channel nitro protocol version * Generate latest contract bindings * Add steps to generate bindings * Update DEVELOPMENT.md * Use wrapped error in handle objective request * Update README and DEVELOPMENT.md * Add methods to register listeners for ledger and payment updates (#5) * Implement wait for payment and ledger channel status meethods * Add methods to register ledger and payment updates * Use wrapped error (#6) * Use wrapped error * Format wrapped error message * Fix error message --------- Co-authored-by: neerajvijay1997 <[email protected]>
- Loading branch information
1 parent
73f1ebc
commit 78196f4
Showing
29 changed files
with
522 additions
and
163 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,54 @@ | ||
# Development | ||
|
||
## Skipped go-nitro Commits / Features | ||
|
||
* Usage of bearer auth tokens | ||
* <https://github.com/statechannels/go-nitro/pull/1351> | <https://github.com/cerc-io/go-nitro/commit/903239959d2ffce936060932fca5476f50430668> | ||
* Kademlia-dht peer discovery | ||
* <https://github.com/statechannels/go-nitro/pull/1462> | ||
* Use libp2p notifications | ||
* <https://github.com/statechannels/go-nitro/pull/1488/files> | ||
* Skipping `libp2p.NATPortMap()` | ||
* Implement a basic reverse payment proxy | ||
* <https://github.com/statechannels/go-nitro/pull/1483> | ||
|
||
## Known issues (ts-nitro) | ||
|
||
* Metamask caching issue after chain restart | ||
* Error occurs during direct fund transfer in mobymask-ui when the Nitro Node makes an eth_call to the Nitro Adjudicator contract | ||
|
||
```bash | ||
Received invalid block tag 1270. Latest block number is 99 | ||
``` | ||
|
||
* <https://ethereum.stackexchange.com/questions/109625/received-invalid-block-tag-87-latest-block-number-is-0> | ||
|
||
* To resolve this issue, attempt changing the network in Metamask and then switch back to the network you're using to connect to the local node | ||
## Known issues (go-nitro) | ||
* Error is thrown when trying to fund virtual channels with amounts more than their ledger channel supports | ||
```bash | ||
panic: error updating ledger funding: error proposing ledger update: propose could not add new state vars: insufficient funds | ||
goroutine 88 [running]: | ||
github.com/statechannels/go-nitro/node/engine.(*Engine).checkError(0x748a4ac48e62a6aa?, {0x1e60900, 0xc00048c940}) | ||
go-nitro/node/engine/engine.go:867 +0x139 | ||
github.com/statechannels/go-nitro/node/engine.(*Engine).run(0xc000306500, {0x1e6f948, 0xc0006a09b0}) | ||
go-nitro/node/engine/engine.go:211 +0x852 | ||
created by github.com/statechannels/go-nitro/node/engine.New in goroutine 1 | ||
go-nitro/node/engine/engine.go:164 +0x54b | ||
``` | ||
* Error is thrown when conducting direct defund while virtual channel is running | ||
```bash | ||
panic: handleAPIEvent: Could not create directdefund objective for {ChannelId:0xecb0d8f2cdd9222b56dc24daa6b10fc2143f7b8861695071e260417d4ad289f6 objectiveStarted:0xc000743da0}: ledger channel has running guarantees | ||
goroutine 200 [running]: | ||
github.com/statechannels/go-nitro/node/engine.(*Engine).checkError(0x0?, {0x1e60900, 0xc000b8a240}) | ||
go-nitro/node/engine/engine.go:867 +0x139 | ||
github.com/statechannels/go-nitro/node/engine.(*Engine).run(0xc0009800a0, {0x1e6f948, 0xc000984000}) | ||
go-nitro/node/engine/engine.go:211 +0x852 | ||
created by github.com/statechannels/go-nitro/node/engine.New in goroutine 1 | ||
go-nitro/node/engine/engine.go:164 +0x54b | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -182,3 +182,7 @@ Run relay node using v2 watcher | |
```bash | ||
clearNodeStorage() | ||
``` | ||
|
||
### Development | ||
|
||
* [README](./DEVELOPMENT.md) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.