-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
chore: upgrade curio to 1.24.2 and remove ffi dependency
- Loading branch information
Showing
13 changed files
with
2,635 additions
and
43 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 was deleted.
Oops, something went wrong.
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
Submodule filecoin-ffi
deleted from
815fb3
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,39 @@ | ||
package cgo | ||
|
||
import ( | ||
"context" | ||
|
||
"github.com/filecoin-project/go-address" | ||
|
||
"github.com/filecoin-project/go-state-types/abi" | ||
"github.com/ipfs/go-cid" | ||
blockstore "github.com/ipfs/go-ipfs-blockstore" | ||
) | ||
|
||
type ConsensusFault struct { | ||
// Address of the miner at fault (always an ID address). | ||
Target address.Address | ||
// Epoch of the fault, which is the higher epoch of the two blocks causing it. | ||
Epoch abi.ChainEpoch | ||
// Type of fault. | ||
Type ConsensusFaultType | ||
} | ||
|
||
type ConsensusFaultType int64 | ||
|
||
const ( | ||
ConsensusFaultNone ConsensusFaultType = 0 | ||
ConsensusFaultDoubleForkMining ConsensusFaultType = 1 | ||
ConsensusFaultParentGrinding ConsensusFaultType = 2 | ||
ConsensusFaultTimeOffsetMining ConsensusFaultType = 3 | ||
) | ||
|
||
type Externs interface { | ||
GetChainRandomness(ctx context.Context, epoch abi.ChainEpoch) ([32]byte, error) | ||
GetBeaconRandomness(ctx context.Context, epoch abi.ChainEpoch) ([32]byte, error) | ||
VerifyConsensusFault(ctx context.Context, h1, h2, extra []byte) (*ConsensusFault, int64) | ||
TipsetCid(ctx context.Context, epoch abi.ChainEpoch) (cid.Cid, error) | ||
|
||
blockstore.Blockstore | ||
blockstore.Viewer | ||
} |
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,9 @@ | ||
package cgo | ||
|
||
/* | ||
#include "../filcrypto.h" | ||
#include <stdlib.h> | ||
*/ | ||
import "C" | ||
|
||
type FvmMachine = C.InnerFvmMachine_t |
Oops, something went wrong.