DEFINITION of 'Soft Fork' In terms of blockchain technology, a soft fork (or sometimes softfork) is a change to the software protocol where only previously valid blocks/transactions are made invalid.
Hyperledger Fabric is a permissioned blockchain network that gets set by the organizations that intends to setup a consortium. The organizations that take part in building the Hyperledger Fabric network are called the “ members ”. Each member organization in the blockchain network is responsible to setup their peers for participating in the network. All of these peers need are configured with appropriate cryptographic materials like Certificate Authority and other information. Peers in the member organization receives transaction invocation requests from the clients inside the organization. A client can be any specific application/portal serving specific organization/business activities. Client application uses Hyperledger Fabric SDK or REST web service to interact with the Hyperledger Fabric network. Chaincode (similar to Ethereum Smart Contract) installed in peers causes to initiate transaction invocation request. All the peers maintain thei...
There are different types of uints: uint8, uint16, uint32, etc. Normally there's no benefit to using these sub-types because Solidity reserves 256 bits of storage regardless of the uint size. For example, using uint8 instead of uint (uint256) won't save you any gas. But there's an exception to this: inside structs. If you have multiple uints inside a struct, using a smaller-sized uint when possible will allow Solidity to pack these variables together to take up less storage. For example: struct NormalStruct { uint a; uint b; uint c; } struct MiniMe { uint32 a; uint32 b; uint c; } // `mini` will cost less gas than `normal` because of struct packing NormalStruct normal = NormalStruct(10, 20, 30); MiniMe mini = MiniMe(10, 20, 30); For this reason, inside a struct you'll want to use the smallest integer sub-types you can get away with. You'll also want to cluster identical data types together (i.e. put them next to each ot...
Comments
Post a Comment