forked from TrueCloudLab/neoneo-go
core: gofmt
This commit is contained in:
parent
34a38ccce1
commit
bb765ccfa7
2 changed files with 3 additions and 3 deletions
|
@ -1216,7 +1216,7 @@ func (bc *Blockchain) GetStandByValidators() (keys.PublicKeys, error) {
|
||||||
|
|
||||||
// GetValidators returns validators.
|
// GetValidators returns validators.
|
||||||
// Golang implementation of GetValidators method in C# (https://github.com/neo-project/neo/blob/c64748ecbac3baeb8045b16af0d518398a6ced24/neo/Persistence/Snapshot.cs#L182)
|
// Golang implementation of GetValidators method in C# (https://github.com/neo-project/neo/blob/c64748ecbac3baeb8045b16af0d518398a6ced24/neo/Persistence/Snapshot.cs#L182)
|
||||||
func (bc *Blockchain) GetValidators(txes... *transaction.Transaction) ([]*keys.PublicKey, error) {
|
func (bc *Blockchain) GetValidators(txes ...*transaction.Transaction) ([]*keys.PublicKey, error) {
|
||||||
chainState := NewBlockChainState(bc.store)
|
chainState := NewBlockChainState(bc.store)
|
||||||
if len(txes) > 0 {
|
if len(txes) > 0 {
|
||||||
for _, tx := range txes {
|
for _, tx := range txes {
|
||||||
|
@ -1320,7 +1320,7 @@ func (bc *Blockchain) GetValidators(txes... *transaction.Transaction) ([]*keys.P
|
||||||
return result, nil
|
return result, nil
|
||||||
}
|
}
|
||||||
|
|
||||||
func processStateTX(chainState *BlockChainState, tx *transaction.StateTX, ) error {
|
func processStateTX(chainState *BlockChainState, tx *transaction.StateTX) error {
|
||||||
for _, desc := range tx.Descriptors {
|
for _, desc := range tx.Descriptors {
|
||||||
switch desc.Type {
|
switch desc.Type {
|
||||||
case transaction.Account:
|
case transaction.Account:
|
||||||
|
|
|
@ -31,7 +31,7 @@ func NewBlockChainState(store *storage.MemCachedStore) *BlockChainState {
|
||||||
}
|
}
|
||||||
|
|
||||||
// commit commits all the data in current state into storage.
|
// commit commits all the data in current state into storage.
|
||||||
func (state *BlockChainState) commit() error {
|
func (state *BlockChainState) commit() error {
|
||||||
if err := state.accounts.commit(state.store); err != nil {
|
if err := state.accounts.commit(state.store); err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue