ardanlabs / liarsdice Goto Github PK
View Code? Open in Web Editor NEWPlatform for the liar's dice game
License: Apache License 2.0
Platform for the liar's dice game
License: Apache License 2.0
Hi,
First of all very nice project you've got here. I've had a good look through the code and it really covers all bases. I wanted to test it out locally but I'm facing something strange with geth. When I run make geth-up
, as suggested in the Wiki to do for step 1, I get the following error:
WARN [01-05|20:52:08.814] IPC opening failed url=zarf/ethereum/geth.ipc error="listen unix zarf/ethereum/geth.ipc: bind: operation not supported"
Fatal: Error starting protocol stack: listen unix zarf/ethereum/geth.ipc: bind: operation not supported
I've tried both the most recent unstable version of geth and the most recent stable version (1.10.26-stable) resulting in the same error for both.
Am I missing something? I noticed that there's a warning for running Geth in --dev mode stating that networking is disabled but yet in the make geth-up
command, you have added what looks like a number of networking-related parameters with the geth --dev command.
Thanks in advance,
Hi @ardan-bkennedy,
I just wanted to start by saying thank you for your repository and all the hard work you've put in.
I managed to get the project deployed, but I've hit a roadblock trying to run the game engine.
I checked the presence and running of Engine by visiting http://localhost:3000/v1/game/config
and got the successful response {"network":"http://localhost:8545","chainId":1337,"contractId":"0x531130464929826c57bbbf989e44085a02eeb120"}
During the lunching, game-tui1
or game-tui2
or even game-tuio
gets the following error: invalid chain id, got 0, exp 1337
.
I've checked the last dev logs and obtain the following logs:
SALES-API: 2024-07-16T12:31:19.20505814Z: logger.go:29: INFO: 22d82c42-c182-4aa7-8ecd-c3b80ae7e28a: request completed: path[/v1/game/config]: since[87.043µs]: method[GET]: remoteaddr[172.18.0.1:52968]: statuscode[200]
SALES-API: 2024-07-16T12:32:04.014438097Z: logger.go:25: INFO: b8def3c5-ac41-405d-8c2a-ca34445f5c80: request started: path[/v1/game/connect]: method[POST]: remoteaddr[172.18.0.1:34048]
SALES-API: 2024-07-16T12:32:04.014600352Z: gamegrp.go:501: INFO: b8def3c5-ac41-405d-8c2a-ca34445f5c80: validate signature: 20240716123204[20240716123204]: address[0x0070742ff6003c3e809e78d524f0fe5dcc5ba7f7]: signature[0xe0c4cd601dfa8303c0f90984b03386a0a6c9405962884e8ba0e615f7bc24df36579883f81981e4b6ac74c1205c2520bf2181c73fe8b24c1a8cbb69629ee593dc1c]: datetime[curtime]
SALES-API: 2024-07-16T12:32:04.014640396Z: main.go:54: INFO: b8def3c5-ac41-405d-8c2a-ca34445f5c80: ******* SEND ALERT ******
SALES-API: 2024-07-16T12:32:04.0146354Z: errors.go:21: ERROR: b8def3c5-ac41-405d-8c2a-ca34445f5c80: invalid chain id, got 0, exp 1337
SALES-API: 2024-07-16T12:32:04.014699583Z: logger.go:29: INFO: b8def3c5-ac41-405d-8c2a-ca34445f5c80: request completed: method[POST]: remoteaddr[172.18.0.1:34048]: since[266.018µs]: path[/v1/game/connect]: statuscode[400]
During the checking code, it's raising exception at app/services/engine/handlers/gamegrp/gamegrp.go:507.
if dt.ChainID != chainID {
return "", fmt.Errorf("invalid chain id, got %d, exp %d", dt.ChainID, chainID)
}
But unfortunately, I can't get past this point at this moment.
@ardan-bkennedy I would really appreciate it if you could give me some hints or clues about what might be wrong with it. Or perhaps the recent changes in Ethereum have affected the project. Thank you!
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.