v1.27.0-a #10
@ -335,7 +335,7 @@ type FullNode interface {
|
|||||||
WalletVerify(context.Context, address.Address, []byte, *crypto.Signature) (bool, error) //perm:read
|
WalletVerify(context.Context, address.Address, []byte, *crypto.Signature) (bool, error) //perm:read
|
||||||
// WalletDefaultAddress returns the address marked as default in the wallet.
|
// WalletDefaultAddress returns the address marked as default in the wallet.
|
||||||
WalletDefaultAddress(context.Context) (address.Address, error) //perm:write
|
WalletDefaultAddress(context.Context) (address.Address, error) //perm:write
|
||||||
// WalletSetDefault marks the given address as as the default one.
|
// WalletSetDefault marks the given address as the default one.
|
||||||
WalletSetDefault(context.Context, address.Address) error //perm:write
|
WalletSetDefault(context.Context, address.Address) error //perm:write
|
||||||
// WalletExport returns the private key of an address in the wallet.
|
// WalletExport returns the private key of an address in the wallet.
|
||||||
WalletExport(context.Context, address.Address) (*types.KeyInfo, error) //perm:admin
|
WalletExport(context.Context, address.Address) (*types.KeyInfo, error) //perm:admin
|
||||||
|
@ -293,7 +293,7 @@ type FullNode interface {
|
|||||||
WalletVerify(context.Context, address.Address, []byte, *crypto.Signature) (bool, error) //perm:read
|
WalletVerify(context.Context, address.Address, []byte, *crypto.Signature) (bool, error) //perm:read
|
||||||
// WalletDefaultAddress returns the address marked as default in the wallet.
|
// WalletDefaultAddress returns the address marked as default in the wallet.
|
||||||
WalletDefaultAddress(context.Context) (address.Address, error) //perm:write
|
WalletDefaultAddress(context.Context) (address.Address, error) //perm:write
|
||||||
// WalletSetDefault marks the given address as as the default one.
|
// WalletSetDefault marks the given address as the default one.
|
||||||
WalletSetDefault(context.Context, address.Address) error //perm:write
|
WalletSetDefault(context.Context, address.Address) error //perm:write
|
||||||
// WalletExport returns the private key of an address in the wallet.
|
// WalletExport returns the private key of an address in the wallet.
|
||||||
WalletExport(context.Context, address.Address) (*types.KeyInfo, error) //perm:admin
|
WalletExport(context.Context, address.Address) (*types.KeyInfo, error) //perm:admin
|
||||||
|
@ -145,10 +145,10 @@ func readEmbeddedBuiltinActorsMetadata(bundle string) ([]*BuiltinActorsMetadata,
|
|||||||
)
|
)
|
||||||
|
|
||||||
if !strings.HasPrefix(bundle, "v") {
|
if !strings.HasPrefix(bundle, "v") {
|
||||||
return nil, xerrors.Errorf("bundle bundle '%q' doesn't start with a 'v'", bundle)
|
return nil, xerrors.Errorf("bundle '%q' doesn't start with a 'v'", bundle)
|
||||||
}
|
}
|
||||||
if !strings.HasSuffix(bundle, archiveExt) {
|
if !strings.HasSuffix(bundle, archiveExt) {
|
||||||
return nil, xerrors.Errorf("bundle bundle '%q' doesn't end with '%s'", bundle, archiveExt)
|
return nil, xerrors.Errorf("bundle '%q' doesn't end with '%s'", bundle, archiveExt)
|
||||||
}
|
}
|
||||||
version, err := strconv.ParseInt(bundle[1:len(bundle)-len(archiveExt)], 10, 0)
|
version, err := strconv.ParseInt(bundle[1:len(bundle)-len(archiveExt)], 10, 0)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -26382,7 +26382,7 @@
|
|||||||
{
|
{
|
||||||
"name": "Filecoin.WalletSetDefault",
|
"name": "Filecoin.WalletSetDefault",
|
||||||
"description": "```go\nfunc (s *FullNodeStruct) WalletSetDefault(p0 context.Context, p1 address.Address) error {\n\tif s.Internal.WalletSetDefault == nil {\n\t\treturn ErrNotSupported\n\t}\n\treturn s.Internal.WalletSetDefault(p0, p1)\n}\n```",
|
"description": "```go\nfunc (s *FullNodeStruct) WalletSetDefault(p0 context.Context, p1 address.Address) error {\n\tif s.Internal.WalletSetDefault == nil {\n\t\treturn ErrNotSupported\n\t}\n\treturn s.Internal.WalletSetDefault(p0, p1)\n}\n```",
|
||||||
"summary": "WalletSetDefault marks the given address as as the default one.\n",
|
"summary": "WalletSetDefault marks the given address as the default one.\n",
|
||||||
"paramStructure": "by-position",
|
"paramStructure": "by-position",
|
||||||
"params": [
|
"params": [
|
||||||
{
|
{
|
||||||
|
@ -478,7 +478,7 @@ func (ei *EventIndex) CollectEvents(ctx context.Context, te *TipSetEvents, rever
|
|||||||
// rollback the transaction (a no-op if the transaction was already committed)
|
// rollback the transaction (a no-op if the transaction was already committed)
|
||||||
defer func() { _ = tx.Rollback() }()
|
defer func() { _ = tx.Rollback() }()
|
||||||
|
|
||||||
// lets handle the revert case first, since its simpler and we can simply mark all events events in this tipset as reverted and return
|
// lets handle the revert case first, since its simpler and we can simply mark all events in this tipset as reverted and return
|
||||||
if revert {
|
if revert {
|
||||||
_, err = tx.Stmt(ei.stmtRevertEventsInTipset).Exec(te.msgTs.Height(), te.msgTs.Key().Bytes())
|
_, err = tx.Stmt(ei.stmtRevertEventsInTipset).Exec(te.msgTs.Height(), te.msgTs.Key().Bytes())
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
@ -400,7 +400,7 @@ tailLoop:
|
|||||||
continue tailLoop
|
continue tailLoop
|
||||||
}
|
}
|
||||||
|
|
||||||
// the merge loop ended after processing all the chains and we we probably have still
|
// the merge loop ended after processing all the chains and we probably have still
|
||||||
// gas to spare; end the loop.
|
// gas to spare; end the loop.
|
||||||
break
|
break
|
||||||
}
|
}
|
||||||
|
@ -52,7 +52,7 @@ func TestChainCheckpoint(t *testing.T) {
|
|||||||
head = cs.GetHeaviestTipSet()
|
head = cs.GetHeaviestTipSet()
|
||||||
require.True(t, head.Equals(checkpoint))
|
require.True(t, head.Equals(checkpoint))
|
||||||
|
|
||||||
// Let the second miner miner mine a fork
|
// Let the second miner mine a fork
|
||||||
last = checkpointParents
|
last = checkpointParents
|
||||||
for i := 0; i < 4; i++ {
|
for i := 0; i < 4; i++ {
|
||||||
ts, err := cg.NextTipSetFromMiners(last, cg.Miners[1:], 0)
|
ts, err := cg.NextTipSetFromMiners(last, cg.Miners[1:], 0)
|
||||||
|
@ -7594,7 +7594,7 @@ Inputs:
|
|||||||
Response: `"f01234"`
|
Response: `"f01234"`
|
||||||
|
|
||||||
### WalletSetDefault
|
### WalletSetDefault
|
||||||
WalletSetDefault marks the given address as as the default one.
|
WalletSetDefault marks the given address as the default one.
|
||||||
|
|
||||||
|
|
||||||
Perms: write
|
Perms: write
|
||||||
|
@ -9284,7 +9284,7 @@ Inputs:
|
|||||||
Response: `"f01234"`
|
Response: `"f01234"`
|
||||||
|
|
||||||
### WalletSetDefault
|
### WalletSetDefault
|
||||||
WalletSetDefault marks the given address as as the default one.
|
WalletSetDefault marks the given address as the default one.
|
||||||
|
|
||||||
|
|
||||||
Perms: write
|
Perms: write
|
||||||
|
@ -95,7 +95,7 @@ func (a *Alerting) update(at AlertType, message interface{}, upd func(Alert, jso
|
|||||||
}{
|
}{
|
||||||
AlertError: err.Error(),
|
AlertError: err.Error(),
|
||||||
})
|
})
|
||||||
log.Errorw("marshaling marshaling error failed", "type", at, "error", err)
|
log.Errorw("marshaling error failed", "type", at, "error", err)
|
||||||
}
|
}
|
||||||
|
|
||||||
a.alerts[at] = upd(alert, rawMsg)
|
a.alerts[at] = upd(alert, rawMsg)
|
||||||
|
@ -190,11 +190,11 @@ var (
|
|||||||
RcmgrAllowPeer = stats.Int64("rcmgr/allow_peer", "Number of allowed peer connections", stats.UnitDimensionless)
|
RcmgrAllowPeer = stats.Int64("rcmgr/allow_peer", "Number of allowed peer connections", stats.UnitDimensionless)
|
||||||
RcmgrBlockPeer = stats.Int64("rcmgr/block_peer", "Number of blocked peer connections", stats.UnitDimensionless)
|
RcmgrBlockPeer = stats.Int64("rcmgr/block_peer", "Number of blocked peer connections", stats.UnitDimensionless)
|
||||||
RcmgrAllowProto = stats.Int64("rcmgr/allow_proto", "Number of allowed streams attached to a protocol", stats.UnitDimensionless)
|
RcmgrAllowProto = stats.Int64("rcmgr/allow_proto", "Number of allowed streams attached to a protocol", stats.UnitDimensionless)
|
||||||
RcmgrBlockProto = stats.Int64("rcmgr/block_proto", "Number of blocked blocked streams attached to a protocol", stats.UnitDimensionless)
|
RcmgrBlockProto = stats.Int64("rcmgr/block_proto", "Number of blocked streams attached to a protocol", stats.UnitDimensionless)
|
||||||
RcmgrBlockProtoPeer = stats.Int64("rcmgr/block_proto", "Number of blocked blocked streams attached to a protocol for a specific peer", stats.UnitDimensionless)
|
RcmgrBlockProtoPeer = stats.Int64("rcmgr/block_proto", "Number of blocked streams attached to a protocol for a specific peer", stats.UnitDimensionless)
|
||||||
RcmgrAllowSvc = stats.Int64("rcmgr/allow_svc", "Number of allowed streams attached to a service", stats.UnitDimensionless)
|
RcmgrAllowSvc = stats.Int64("rcmgr/allow_svc", "Number of allowed streams attached to a service", stats.UnitDimensionless)
|
||||||
RcmgrBlockSvc = stats.Int64("rcmgr/block_svc", "Number of blocked blocked streams attached to a service", stats.UnitDimensionless)
|
RcmgrBlockSvc = stats.Int64("rcmgr/block_svc", "Number of blocked streams attached to a service", stats.UnitDimensionless)
|
||||||
RcmgrBlockSvcPeer = stats.Int64("rcmgr/block_svc", "Number of blocked blocked streams attached to a service for a specific peer", stats.UnitDimensionless)
|
RcmgrBlockSvcPeer = stats.Int64("rcmgr/block_svc", "Number of blocked streams attached to a service for a specific peer", stats.UnitDimensionless)
|
||||||
RcmgrAllowMem = stats.Int64("rcmgr/allow_mem", "Number of allowed memory reservations", stats.UnitDimensionless)
|
RcmgrAllowMem = stats.Int64("rcmgr/allow_mem", "Number of allowed memory reservations", stats.UnitDimensionless)
|
||||||
RcmgrBlockMem = stats.Int64("rcmgr/block_mem", "Number of blocked memory reservations", stats.UnitDimensionless)
|
RcmgrBlockMem = stats.Int64("rcmgr/block_mem", "Number of blocked memory reservations", stats.UnitDimensionless)
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user