From 8633cbfe42adb040042c8daf9909434fec812056 Mon Sep 17 00:00:00 2001
From: Jonas Theis <mail@jonastheis.de>
Date: Mon, 27 Jul 2020 13:56:57 +0200
Subject: [PATCH] Bump versions (#676)

* Bump up versions

* Add changelog

* Remove waiting on startup for sync beacon node with `syncbeacon.startSynced=true`

* Update CHANGELOG.md

Co-authored-by: Angelo Capossele <angelocapossele@gmail.com>

Co-authored-by: Angelo Capossele <angelocapossele@gmail.com>
---
 CHANGELOG.md                       | 32 +++++++++++++++++++++++++++++-
 plugins/autopeering/autopeering.go |  2 +-
 plugins/banner/plugin.go           |  2 +-
 plugins/database/versioning.go     |  2 +-
 plugins/syncbeacon/plugin.go       |  4 ----
 5 files changed, 34 insertions(+), 8 deletions(-)

diff --git a/CHANGELOG.md b/CHANGELOG.md
index 8e606a4c..72bf22f7 100644
--- a/CHANGELOG.md
+++ b/CHANGELOG.md
@@ -1,3 +1,33 @@
+# v0.2.2 - 2020-07-27
+* Improves message and transaction validation: 
+    * Adjust max transaction inputs count;
+    * Adds signature validation before issuance; 
+    * Enforce max message size in message factory.
+* Improves API:
+    * Changes granularity of spammer API to accept messages per minute;
+    * Adds API middleware and set CORS to allow from every origin;
+    * Adds sendTransactionByJSON to allow a client to issue transactions by providing them in a JSON format;
+    * Adds tool API endpoint to facilitate debugging of the solidification status;
+    * Removes old API documentation;
+* Improves synchronization process:
+    * Refactors message requester to be more reliable;
+    * Improves solidification process;
+    * Refactors worker pool management;
+    * Replaces bootstrap plugin with the more secure and reliable beacon plugin.
+* Improves analysis-server dashboard:
+    * Adds the ability to distinguish between different GoShimmer node versions;
+    * Refactors the interaction between server side and dashboard;
+    * Improves consensus visualization;
+    * Improves dashboard tooling.
+* Adds a new electron-based wallet.
+* Increases max gossip packet size.
+* Adds command to the CLI to override database dirty flag.
+* Grafana local dashboard
+    * Adds messages in database chart (solid, not solid, total)
+    * Adds average solidification time chart
+    * Adds Message Request Queue Size chart
+* **Breaking**: bumps network and database versions
+
 # v0.2.1 - 2020-07-01
 * Adds PoW requirement to faucet payloads
 * Adds tips broadcaster to ensure that all chains are getting solidified
@@ -167,4 +197,4 @@ A detailed list about the changes in v0.1.0 can be seen under the given [milesto
 * Removes sent count from spammed transactions
 * Removes usage of `errors.Identifiable` and `github.com/pkg/errors` in favor of standard lib `errors` package
 * Use `network`, `parameter`, `events`, `database`, `logger`, `daemon`, `workerpool` and `node` packages from hive.go
-* Removes unused plugins (`zmq`, `dashboard`, `ui`)
\ No newline at end of file
+* Removes unused plugins (`zmq`, `dashboard`, `ui`)
diff --git a/plugins/autopeering/autopeering.go b/plugins/autopeering/autopeering.go
index 454de059..4a1db801 100644
--- a/plugins/autopeering/autopeering.go
+++ b/plugins/autopeering/autopeering.go
@@ -25,7 +25,7 @@ import (
 // autopeering constants
 const (
 	ProtocolVersion = 0 // update on protocol changes
-	NetworkVersion  = 4 // update on network changes
+	NetworkVersion  = 5 // update on network changes
 )
 
 var (
diff --git a/plugins/banner/plugin.go b/plugins/banner/plugin.go
index 62296609..b231e1e4 100644
--- a/plugins/banner/plugin.go
+++ b/plugins/banner/plugin.go
@@ -18,7 +18,7 @@ var (
 
 const (
 	// AppVersion version number
-	AppVersion = "v0.2.1"
+	AppVersion = "v0.2.2"
 
 	// AppName app code name
 	AppName = "GoShimmer"
diff --git a/plugins/database/versioning.go b/plugins/database/versioning.go
index ae813821..4ccac315 100644
--- a/plugins/database/versioning.go
+++ b/plugins/database/versioning.go
@@ -10,7 +10,7 @@ import (
 const (
 	// DBVersion defines the version of the database schema this version of GoShimmer supports.
 	// Every time there's a breaking change regarding the stored data, this version flag should be adjusted.
-	DBVersion = 5
+	DBVersion = 6
 )
 
 var (
diff --git a/plugins/syncbeacon/plugin.go b/plugins/syncbeacon/plugin.go
index 77b7c3e0..3461ff40 100644
--- a/plugins/syncbeacon/plugin.go
+++ b/plugins/syncbeacon/plugin.go
@@ -78,10 +78,6 @@ func broadcastSyncBeaconPayload() {
 
 func run(_ *node.Plugin) {
 	if err := daemon.BackgroundWorker("Sync-Beacon", func(shutdownSignal <-chan struct{}) {
-		// wait CfgSyncBeaconBroadcastIntervalSec to possibly retrieve new beacons
-		if config.Node().GetBool(CfgSyncBeaconStartSynced) {
-			time.Sleep(config.Node().GetDuration(CfgSyncBeaconBroadcastIntervalSec) * time.Second)
-		}
 		ticker := time.NewTicker(config.Node().GetDuration(CfgSyncBeaconBroadcastIntervalSec) * time.Second)
 		defer ticker.Stop()
 		for {
-- 
GitLab