Skip to content

Commit

Permalink
Release v2.0.0-alpha7 (#1440)
Browse files Browse the repository at this point in the history
  • Loading branch information
muXxer authored Apr 21, 2022
1 parent 75bdaed commit 627125f
Show file tree
Hide file tree
Showing 3 changed files with 24 additions and 10 deletions.
15 changes: 10 additions & 5 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,21 @@

All notable changes to this project will be documented in this file.

## [2.0.0-alpha7] - 07.04.2022
## [2.0.0-alpha7] - 21.04.2022

### Changed
- Changed bech32 prefix for the testnet to `rms`
- Milestone payloads now contain an optional metadata field according to TIP-29.
- Milestone payloads now contain an optional metadata field according to TIP-29. (#1404)
- Now using `rms` bech32 prefix according to TIP-31
- Private tangle improvements (#1390, #1395)
- Adapted ed25519-key tool to print mnemonic and derived keys using slip10 (#1407)
- Removed coordinator plugin (#1404)
- Encode Messages and Outputs based on the given Accept Header MIME type (#1427)

### Fixed
- Fixed deadlock while shutting down the node
- Fixed stale connections to peers when the initial stream establishment fails.
- Fixed deadlock while shutting down the node (#1394)
- Fixed stale connections to peers when the initial stream establishment fails. (#1395)
- Fixed request queue behavior and test cases (#1412)
- Fix wrong timestamp data type (#1438)

## [2.0.0-alpha6] - 30.03.2022

Expand Down
17 changes: 13 additions & 4 deletions pkg/model/storage/snapshot.go
Original file line number Diff line number Diff line change
Expand Up @@ -44,19 +44,25 @@ func (s *Storage) PrintSnapshotInfo() {
}

func (i *SnapshotInfo) Deserialize(data []byte, deSeriMode serializer.DeSerializationMode, deSeriCtx interface{}) (int, error) {
var timestamp uint32

var (
snapshotIndex uint32
entryPointIndex uint32
pruningIndex uint32
timestamp uint32
)

offset, err := serializer.NewDeserializer(data).
ReadNum(&i.NetworkID, func(err error) error {
return fmt.Errorf("unable to deserialize network ID: %w", err)
}).
ReadNum(&i.SnapshotIndex, func(err error) error {
ReadNum(&snapshotIndex, func(err error) error {
return fmt.Errorf("unable to deserialize snapshot index: %w", err)
}).
ReadNum(&i.EntryPointIndex, func(err error) error {
ReadNum(&entryPointIndex, func(err error) error {
return fmt.Errorf("unable to deserialize entry point index: %w", err)
}).
ReadNum(&i.PruningIndex, func(err error) error {
ReadNum(&pruningIndex, func(err error) error {
return fmt.Errorf("unable to deserialize pruning index: %w", err)
}).
ReadNum(&timestamp, func(err error) error {
Expand All @@ -67,6 +73,9 @@ func (i *SnapshotInfo) Deserialize(data []byte, deSeriMode serializer.DeSerializ
return offset, err
}

i.SnapshotIndex = milestone.Index(snapshotIndex)
i.EntryPointIndex = milestone.Index(entryPointIndex)
i.PruningIndex = milestone.Index(pruningIndex)
i.Timestamp = time.Unix(int64(timestamp), 0)

return offset, nil
Expand Down
2 changes: 1 addition & 1 deletion private_tangle/bootstrap.sh
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@ if [[ "$OSTYPE" != "darwin"* && "$EUID" -ne 0 ]]; then
fi

# Cleanup if necessary
if [ -d "privatedb" ]; then
if [ -d "privatedb" ] || [ -d "snapshots"]; then
./cleanup.sh
fi

Expand Down

0 comments on commit 627125f

Please sign in to comment.