- Everything is encoded in Little-Endian without any padding or alignment.
- Strings have a fixed length but can be null-terminated if they are shorter.
- All integer numbers are always encoded in 8 bytes using two's complement representation.
- Boolean values are encoded in one byte, with
0x00
meaningfalse
and any other value meaningtrue
. - IOTA addresses are always transferred in their 81 character base-27 encoding without checksum information.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
go mod edit -replace github.com/tendermint/tm-db=github.com/baabeetaa/tm-db@pebble | |
go mod tidy | |
go mod edit -replace github.com/tendermint/tendermint=github.com/notional-labs/mev-tendermint@0db69e64a2e87bb29b4417780da30630df97cadd | |
go mod tidy | |
go install -ldflags '-w -s -X github.com/cosmos/cosmos-sdk/types.DBBackend=pebbledb -X github.com/tendermint/tm-db.ForceSync=1' -tags pebbledb ./... |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
/** | |
* Add attributes to each object of an array. | |
* | |
* @param {array} foo - Array of objects where we will add the attibutes | |
* @param {function} iterator | |
*/ | |
_.each(foo, function(element, index) { | |
_.extend(element, {field1: index}, {field2: 'bar', field3: 'baz'}); | |
}); |