mirror of
https://github.com/nspcc-dev/neo-go.git
synced 2024-12-03 13:58:37 +00:00
parent
af583c14ea
commit
860c146260
4 changed files with 7 additions and 7 deletions
|
@ -178,7 +178,7 @@ func TestCreateBasicChain(t *testing.T) {
|
||||||
priv0 := testchain.PrivateKeyByID(0)
|
priv0 := testchain.PrivateKeyByID(0)
|
||||||
priv0ScriptHash := priv0.GetScriptHash()
|
priv0ScriptHash := priv0.GetScriptHash()
|
||||||
|
|
||||||
require.Equal(t, big.NewInt(2500_0000), bc.GetUtilityTokenBalance(priv0ScriptHash)) // gas bounty
|
require.Equal(t, big.NewInt(5000_0000), bc.GetUtilityTokenBalance(priv0ScriptHash)) // gas bounty
|
||||||
// Move some NEO to one simple account.
|
// Move some NEO to one simple account.
|
||||||
txMoveNeo := newNEP5Transfer(neoHash, neoOwner, priv0ScriptHash, neoAmount)
|
txMoveNeo := newNEP5Transfer(neoHash, neoOwner, priv0ScriptHash, neoAmount)
|
||||||
txMoveNeo.ValidUntilBlock = validUntilBlock
|
txMoveNeo.ValidUntilBlock = validUntilBlock
|
||||||
|
|
|
@ -68,9 +68,9 @@ const (
|
||||||
// neoHolderRewardRatio is a percent of generated GAS that is distributed to NEO holders.
|
// neoHolderRewardRatio is a percent of generated GAS that is distributed to NEO holders.
|
||||||
neoHolderRewardRatio = 10
|
neoHolderRewardRatio = 10
|
||||||
// neoHolderRewardRatio is a percent of generated GAS that is distributed to committee.
|
// neoHolderRewardRatio is a percent of generated GAS that is distributed to committee.
|
||||||
committeeRewardRatio = 5
|
committeeRewardRatio = 10
|
||||||
// neoHolderRewardRatio is a percent of generated GAS that is distributed to voters.
|
// neoHolderRewardRatio is a percent of generated GAS that is distributed to voters.
|
||||||
voterRewardRatio = 85
|
voterRewardRatio = 80
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
|
|
@ -288,7 +288,7 @@ func TestNEO_CommitteeBountyOnPersist(t *testing.T) {
|
||||||
hs[i] = testchain.PrivateKeyByID(i).GetScriptHash()
|
hs[i] = testchain.PrivateKeyByID(i).GetScriptHash()
|
||||||
}
|
}
|
||||||
|
|
||||||
const singleBounty = 25000000
|
const singleBounty = 50000000
|
||||||
bs := map[int]int64{0: singleBounty}
|
bs := map[int]int64{0: singleBounty}
|
||||||
checkBalances := func() {
|
checkBalances := func() {
|
||||||
for i := 0; i < testchain.CommitteeSize(); i++ {
|
for i := 0; i < testchain.CommitteeSize(); i++ {
|
||||||
|
|
|
@ -1214,7 +1214,7 @@ func checkNep5Balances(t *testing.T, e *executor, acc interface{}) {
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
Asset: e.chain.UtilityTokenHash(),
|
Asset: e.chain.UtilityTokenHash(),
|
||||||
Amount: "799.59641770",
|
Amount: "800.09641770",
|
||||||
LastUpdated: 7,
|
LastUpdated: 7,
|
||||||
}},
|
}},
|
||||||
Address: testchain.PrivateKeyByID(0).GetScriptHash().StringLE(),
|
Address: testchain.PrivateKeyByID(0).GetScriptHash().StringLE(),
|
||||||
|
@ -1361,7 +1361,7 @@ func checkNep5TransfersAux(t *testing.T, e *executor, acc interface{}, sent, rcv
|
||||||
Timestamp: blockGASBounty.Timestamp,
|
Timestamp: blockGASBounty.Timestamp,
|
||||||
Asset: e.chain.UtilityTokenHash(),
|
Asset: e.chain.UtilityTokenHash(),
|
||||||
Address: "",
|
Address: "",
|
||||||
Amount: "0.25000000",
|
Amount: "0.50000000",
|
||||||
Index: 6,
|
Index: 6,
|
||||||
NotifyIndex: 0,
|
NotifyIndex: 0,
|
||||||
TxHash: blockGASBounty.Hash(),
|
TxHash: blockGASBounty.Hash(),
|
||||||
|
@ -1406,7 +1406,7 @@ func checkNep5TransfersAux(t *testing.T, e *executor, acc interface{}, sent, rcv
|
||||||
Timestamp: blockGASBounty0.Timestamp,
|
Timestamp: blockGASBounty0.Timestamp,
|
||||||
Asset: e.chain.UtilityTokenHash(),
|
Asset: e.chain.UtilityTokenHash(),
|
||||||
Address: "",
|
Address: "",
|
||||||
Amount: "0.25000000",
|
Amount: "0.50000000",
|
||||||
Index: 0,
|
Index: 0,
|
||||||
TxHash: blockGASBounty0.Hash(),
|
TxHash: blockGASBounty0.Hash(),
|
||||||
},
|
},
|
||||||
|
|
Loading…
Reference in a new issue