Skip to content
Open

[WIP] #1798

Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
81 changes: 79 additions & 2 deletions consensus/XDPoS/XDPoS.go

Large diffs are not rendered by default.

14 changes: 14 additions & 0 deletions consensus/XDPoS/engines/engine_v2_subnet/difficulty.go
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package engine_v2_subnet

import (
"math/big"

"github.com/XinFinOrg/XDPoSChain/common"
"github.com/XinFinOrg/XDPoSChain/consensus"
"github.com/XinFinOrg/XDPoSChain/core/types"
)

// TODO: what should be new difficulty
func (x *XDPoS_v2) calcDifficulty(chain consensus.ChainReader, parent *types.Header, signer common.Address) *big.Int {
return big.NewInt(1)
}
Loading
Loading