-
Notifications
You must be signed in to change notification settings - Fork 31
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Start working on v0.1.6 * Change contracts version on package.json * Fixed all compilation errors. * Ran gofmt. * Fix linting and test issues. * Fix performAggregation and add test cases. * Add new state parameter. * Commit and Reveal working. * Vote working. * Run gofmt. * Change version * Change the log messages. * Fix requested changes. * Remove unnecessary test. * Add stakerId as a flag in unstake, withdraw and reset lock. Signed-off-by: Ashish Mishra <[email protected]>
- Loading branch information
1 parent
47eda61
commit 065909a
Showing
32 changed files
with
924 additions
and
6,104 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
package cmd | ||
|
||
import ( | ||
log "github.com/sirupsen/logrus" | ||
"razor/core/types" | ||
"razor/utils" | ||
) | ||
|
||
func ClaimBlockReward(options types.TransactionOptions) { | ||
blockManager := utils.GetBlockManager(options.Client) | ||
txn, err := blockManager.ClaimBlockReward(utils.GetTxnOpts(options)) | ||
if err != nil { | ||
log.Error("Error in claiming block reward: ", err) | ||
return | ||
} | ||
log.Info("Claiming block reward...") | ||
log.Info("Txn Hash: ", txn.Hash().Hex()) | ||
utils.WaitForBlockCompletion(options.Client, txn.Hash().Hex()) | ||
} |
This file contains 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
This file contains 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
This file contains 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
Oops, something went wrong.