mirror of
https://github.com/planetmint/planetmint-go.git
synced 2025-06-30 18:02:30 +00:00

* added a MqttMonitor module with levelDB and periodic cleanup * initialized in the app * passed to dao keeper * added conversion methods (string2unixtime, byte ToJSON) * removed obsolete keeper code * maded RDDLToken.Factor public * added explicit mqtt client to the monitor module * restart mqtt connection in mqttmonitor on connection loss * adjusted mqttmock structure to be compatible * added some linter exclusions to let the monitor tool pass * created a MockMqttMonitor interface and mock object * used this to pass tests * made the MockMqttMonitor a global object so that it can be easily mocked * removed MockMqttMonitor from the app/keeper initialization * adjusted test cases to register "active machines" to the mqttmonitor * added mutex in mocks to protect against data races * defined mocks for the dao tests * clear separation between interface and mqtt-Monitor * added another waiting block to ensure the tx went through (multi-threading issue, race condition) during tests this failed sometimes * added memstorage to test instead of a file based DB Signed-off-by: Jürgen Eckel <juergen@riddleandcode.com>
planetmint-go
planetmint is a blockchain built using Cosmos SDK and CometBFT written in Go and created with Ignite CLI.
Get started
ignite chain serve
serve
command installs dependencies, builds, initializes, and starts your blockchain in development.
Configure
Your blockchain in development can be configured with config.yml
. To learn more, see the Ignite CLI docs.
Install
To install the latest version of this blockchain node's binary, execute the following command on your machine:
git clone https://github.com/planetmint/planetmint-go.git
ignite chain build
Contributing
For contributions refer to the RDDL enhancement proposals repository here
Learn more
Description
Languages
Go
97%
Makefile
3%