Skip to content

Initialize Blockchain Object #1308

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 17 commits into
base: experimental
Choose a base branch
from
Open

Initialize Blockchain Object #1308

wants to merge 17 commits into from

Conversation

sukrawidhyawan
Copy link
Contributor

@sukrawidhyawan sukrawidhyawan commented Oct 21, 2020

Description

This is the initialize of the blockchain object & adds a transaction type to create a blockchain object.

Breakdown

  • Add table blockchain_object to manage blockchain object
  • Add table blockchain_object_property to manage immutable blockchain object properties
  • Add new transaction type CreateBlockchianObject
  • Unit test for added & affected function

Reference Issue

Close #1295

Step to Test (optional)

  • post transaction to create blockchain object
    go run main.go transaction create-blockchain-object --immutable-property-keys="key1,key2,key3" --immutable-property-values="values1,values2,values3" --balance=100 --sender-seed "stand cheap entire summer claw subject victory supreme top divide tooth park change excite legend category motor text zebra bottom mystery off garage energy" --fee 1 --post

@sukrawidhyawan sukrawidhyawan added FEATURE New feature or request EXPERIMENT labels Oct 21, 2020
@sukrawidhyawan sukrawidhyawan self-assigned this Oct 21, 2020
@sukrawidhyawan sukrawidhyawan changed the title initialize blockchain property initialize blockchain Object Oct 21, 2020
@sukrawidhyawan sukrawidhyawan changed the title initialize blockchain Object Initialize Blockchain Object Oct 21, 2020
@sukrawidhyawan sukrawidhyawan marked this pull request as ready for review November 2, 2020 05:31
@abiman7u abiman7u added this to the V.0.0.2.W.02 milestone Nov 12, 2020
andy-shi88 and others added 7 commits November 13, 2020 11:00
[ Stabilize ]  Optimization and bug fixes
delivery binary into experimental servers on deploy develop (#1349)
* update func WillSmith, isMe, IsBlockValid on BlocksmithStrategySpine

* create func CumulativeDifficulty on strategy

* add getRound and temporary-CanPersist function

* remove func GetSortedBlocksmithsMap from package strategy

* add getSkippedBlocksmith functioon

* add new func , remove func , change blocksmithIndex to round

* remove parameter 'block' in isMe func
* #1190 inject random number generator to strategy main

* #1190 fix candidate time calculation

* #1190 separate get smithing round and smithing index function

* #1190 temporarily disable spinechain smithing

* Implementated the new blocksmith selection on spinechain

* #1190 handle previous block skipped blocksmith - blocktime offset.

* #1190 avoid process node-admit, node-expel, blocksmith reward, and skipped blocksmith before accepted/generated block is sure to be persisted to database

* #1190 use estimated persist timestamp for block validation

Co-authored-by: andy-shi88 <[email protected]>
* CreateUnitTestNodeAddressInfoService
* #1190 fix: inconsistent previous block timestamp + fix cumulative difficulty calculated too early in the block

* #1190 remove unused variables
andy-shi88 and others added 3 commits November 23, 2020 08:50
…se deadlock, SQLITE_BUSY (reported as database lock error) which later cause unresolveable fork due to inability to process block (#1362)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

7 participants