diff --git a/cmd/lotus-storage-miner/init.go b/cmd/lotus-storage-miner/init.go index 047624563..0567f51b0 100644 --- a/cmd/lotus-storage-miner/init.go +++ b/cmd/lotus-storage-miner/init.go @@ -217,7 +217,7 @@ func createStorageMiner(ctx context.Context, api api.FullNode, peerid peer.ID) ( return address.Undef, err } - k, err := api.WalletNew(ctx, types.KTSecp256k1) + k, err := api.WalletNew(ctx, types.KTBLS) if err != nil { return address.Undef, err } diff --git a/lotuspond/front/src/FullNode.js b/lotuspond/front/src/FullNode.js index f85215cc5..09dc12b96 100644 --- a/lotuspond/front/src/FullNode.js +++ b/lotuspond/front/src/FullNode.js @@ -13,7 +13,8 @@ class FullNode extends React.Component { this.state = {} this.loadInfo = this.loadInfo.bind(this) - this.newScepAddr = this.newScepAddr.bind(this) + this.newSecpAddr = this.newSecpAddr.bind(this) + this.newBLSAddr = this.newBLSAddr.bind(this) this.startStorageMiner = this.startStorageMiner.bind(this) this.add1k = this.add1k.bind(this) this.explorer = this.explorer.bind(this) @@ -61,12 +62,18 @@ class FullNode extends React.Component { })) } - async newScepAddr() { + async newSecpAddr() { const t = "secp256k1" await this.props.client.call("Filecoin.WalletNew", [t]) this.loadInfo() } + async newBLSAddr() { + const t = "bls" + await this.props.client.call("Filecoin.WalletNew", [t]) + this.loadInfo() + } + async startStorageMiner() { this.props.mountWindow((onClose) => ) } @@ -135,7 +142,7 @@ class FullNode extends React.Component { {storageMine}
-
Balances: [New [Secp256k1]]
+
Balances: [New [Secp256k1] [BLS]]
{addresses}
{miners}
{paychannels}