-
Notifications
You must be signed in to change notification settings - Fork 146
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
substrate-contracts-node does not produce blocks #50
Comments
@ceikit We switched to a consensus mechanism "menual seal" a while ago (in #42). This was done so that there is no block time, but instead transactions are processed alsmost instantly. This is very handy for development and testing, but unsuitable for production. It should still be possible to deploy and interact with contracts as normal, just faster. Did you run into any problems? |
@cmichi thank you! my problem is that (I would assume then that I should not see any block produced in polkadot.js) |
@cmichi it looks like it's an issue with the websocket:
do you know how to allow the connection? I've added --unsafe-ws-external to substrate-contracts-node command and Contract UI connects to LocalNode, but not sure this is the correct solution. (openethereum/parity-ethereum#9678) |
@ceikit this error happens when the local node is not ran in development mode. you need to run also can you post your node version? |
@statictype you are right, I guess the executable that we download from here https://github.com/paritytech/substrate-contracts-node/releases starts the node in Local Testnet version 0.12.0-98a6757 |
@statictype I am running the pre-built binary (v15.0.1). I am not able to connect to the node via the Contracts UI. When I open up the dev console, the only pertinent info I see is On the other hand, I can connect via Thank you! |
It would be very handy being able to configure this, as having blocks produced is useful for testing with indexers etc. |
No idea why, but when I execute
|
It is started. Read above. Blocks are produced on demand. |
When running substrate-contracts-node --dev no block is produced.
Only log line produced is:
2022-04-22 11:26:45 💻 Operating system: macos
2022-04-22 11:26:45 💻 CPU architecture: aarch64
2022-04-22 11:26:45 📦 Highest known block at #0
2022-04-22 11:26:45 〽️ Prometheus exporter started at 127.0.0.1:9615
2022-04-22 11:26:45 Listening for new connections on 127.0.0.1:9944.
2022-04-22 11:26:46 Accepted a new tcp connection from 127.0.0.1:59063.
2022-04-22 11:26:50 💤 Idle (0 peers), best: #0 (0x02ba…032a), finalized #0 (0x02ba…032a), ⬇ 0 ⬆ 0
2022-04-22 11:26:55 💤 Idle (0 peers), best: #0 (0x02ba…032a), finalized #0 (0x02ba…032a), ⬇ 0 ⬆ 0
2022-04-22 11:27:00 💤 Idle (0 peers), best: #0 (0x02ba…032a), finalized #0 (0x02ba…032a), ⬇ 0 ⬆ 0
2022-04-22 11:27:05 💤 Idle (0 peers), best: #0 (0x02ba…032a), finalized #0 (0x02ba…032a), ⬇ 0 ⬆ 0
2022-04-22 11:27:10 💤 Idle (0 peers), best: #0 (0x02ba…032a), finalized #0 (0x02ba…032a), ⬇ 0 ⬆ 0
Am I missing something?
The text was updated successfully, but these errors were encountered: