Skip to content

Commit

Permalink
update IdleFileMeta type
Browse files Browse the repository at this point in the history
  • Loading branch information
AstaFrode committed May 16, 2023
1 parent bfe70dc commit 1afa3e5
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions core/client/idlefile.go
Original file line number Diff line number Diff line change
Expand Up @@ -18,15 +18,15 @@ type IdleFileMeta struct {
BlockNum uint32
BlockSize uint32
ScanSize uint32
minerAcc []byte
MinerAcc []byte
Hash string
}

func (c *Cli) SubmitIdleFile(teeAcc []byte, idlefiles []IdleFileMeta) (string, error) {
var submit = make([]chain.IdleMetadata, 0)
for i := 0; i < len(idlefiles); i++ {
var filehash chain.FileHash
acc, err := types.NewAccountID(idlefiles[i].minerAcc)
acc, err := types.NewAccountID(idlefiles[i].MinerAcc)
if err != nil {
continue
}
Expand Down

0 comments on commit 1afa3e5

Please sign in to comment.