Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zero-gtest issues #60

Open
MarkLTZ opened this issue Nov 5, 2020 · 0 comments
Open

zero-gtest issues #60

MarkLTZ opened this issue Nov 5, 2020 · 0 comments

Comments

@MarkLTZ
Copy link

MarkLTZ commented Nov 5, 2020

Please fix issues on zero-gtest

./zero-gtest 
[==========] Running 206 tests from 32 test cases.
[----------] Global test environment set-up.
[----------] 45 tests from checktransaction_tests
[ RUN      ] checktransaction_tests.check_vpub_not_both_nonzero
[       OK ] checktransaction_tests.check_vpub_not_both_nonzero (0 ms)
[ RUN      ] checktransaction_tests.valid_transaction
[       OK ] checktransaction_tests.valid_transaction (0 ms)
[ RUN      ] checktransaction_tests.BadVersionTooLow
[       OK ] checktransaction_tests.BadVersionTooLow (1 ms)
[ RUN      ] checktransaction_tests.bad_txns_vin_empty
[       OK ] checktransaction_tests.bad_txns_vin_empty (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_vout_empty
[       OK ] checktransaction_tests.bad_txns_vout_empty (0 ms)
[ RUN      ] checktransaction_tests.BadTxnsOversize
[       OK ] checktransaction_tests.BadTxnsOversize (4 ms)
[ RUN      ] checktransaction_tests.OversizeSaplingTxns
gtest/test_checktransaction.cpp:222: Failure
      Expected: ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION)
      Which is: 1999999
To be equal to: MAX_TX_SIZE_AFTER_SAPLING - 1
      Which is: 3999999
gtest/test_checktransaction.cpp:233: Failure
      Expected: ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION)
      Which is: 2000000
To be equal to: MAX_TX_SIZE_AFTER_SAPLING
      Which is: 4000000
gtest/test_checktransaction.cpp:244: Failure
      Expected: ::GetSerializeSize(tx, SER_NETWORK, PROTOCOL_VERSION)
      Which is: 2000001
To be equal to: MAX_TX_SIZE_AFTER_SAPLING + 1
      Which is: 4000001
gtest/test_checktransaction.cpp:248: Failure
Value of: CheckTransactionWithoutProofVerification(tx, state)
  Actual: true
Expected: false
gtest/test_checktransaction.cpp:247: Failure
Actual function call count doesn't match EXPECT_CALL(state, DoS(100, false, REJECT_INVALID, "bad-txns-oversize", false))...
         Expected: to be called once
           Actual: never called - unsatisfied and active
[  FAILED  ] checktransaction_tests.OversizeSaplingTxns (53 ms)
[ RUN      ] checktransaction_tests.bad_txns_vout_negative
[       OK ] checktransaction_tests.bad_txns_vout_negative (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_vout_toolarge
[       OK ] checktransaction_tests.bad_txns_vout_toolarge (1 ms)
[ RUN      ] checktransaction_tests.bad_txns_txouttotal_toolarge_outputs
[       OK ] checktransaction_tests.bad_txns_txouttotal_toolarge_outputs (0 ms)
[ RUN      ] checktransaction_tests.ValueBalanceNonZero
[       OK ] checktransaction_tests.ValueBalanceNonZero (0 ms)
[ RUN      ] checktransaction_tests.PositiveValueBalanceTooLarge
[       OK ] checktransaction_tests.PositiveValueBalanceTooLarge (0 ms)
[ RUN      ] checktransaction_tests.NegativeValueBalanceTooLarge
[       OK ] checktransaction_tests.NegativeValueBalanceTooLarge (0 ms)
[ RUN      ] checktransaction_tests.ValueBalanceOverflowsTotal
[       OK ] checktransaction_tests.ValueBalanceOverflowsTotal (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_txouttotal_toolarge_joinsplit
[       OK ] checktransaction_tests.bad_txns_txouttotal_toolarge_joinsplit (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_txintotal_toolarge_joinsplit
[       OK ] checktransaction_tests.bad_txns_txintotal_toolarge_joinsplit (1 ms)
[ RUN      ] checktransaction_tests.bad_txns_vpub_old_negative
[       OK ] checktransaction_tests.bad_txns_vpub_old_negative (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_vpub_new_negative
[       OK ] checktransaction_tests.bad_txns_vpub_new_negative (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_vpub_old_toolarge
[       OK ] checktransaction_tests.bad_txns_vpub_old_toolarge (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_vpub_new_toolarge
[       OK ] checktransaction_tests.bad_txns_vpub_new_toolarge (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_vpubs_both_nonzero
[       OK ] checktransaction_tests.bad_txns_vpubs_both_nonzero (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_inputs_duplicate
[       OK ] checktransaction_tests.bad_txns_inputs_duplicate (1 ms)
[ RUN      ] checktransaction_tests.bad_joinsplits_nullifiers_duplicate_same_joinsplit
[       OK ] checktransaction_tests.bad_joinsplits_nullifiers_duplicate_same_joinsplit (0 ms)
[ RUN      ] checktransaction_tests.bad_joinsplits_nullifiers_duplicate_different_joinsplit
[       OK ] checktransaction_tests.bad_joinsplits_nullifiers_duplicate_different_joinsplit (0 ms)
[ RUN      ] checktransaction_tests.bad_cb_has_joinsplits
[       OK ] checktransaction_tests.bad_cb_has_joinsplits (0 ms)
[ RUN      ] checktransaction_tests.bad_cb_empty_scriptsig
[       OK ] checktransaction_tests.bad_cb_empty_scriptsig (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_prevout_null
[       OK ] checktransaction_tests.bad_txns_prevout_null (0 ms)
[ RUN      ] checktransaction_tests.bad_txns_invalid_joinsplit_signature
[       OK ] checktransaction_tests.bad_txns_invalid_joinsplit_signature (1 ms)
[ RUN      ] checktransaction_tests.non_canonical_ed25519_signature
[       OK ] checktransaction_tests.non_canonical_ed25519_signature (0 ms)
[ RUN      ] checktransaction_tests.OverwinterConstructors
[       OK ] checktransaction_tests.OverwinterConstructors (0 ms)
[ RUN      ] checktransaction_tests.OverwinterSerialization
[       OK ] checktransaction_tests.OverwinterSerialization (0 ms)
[ RUN      ] checktransaction_tests.OverwinterDefaultValues
[       OK ] checktransaction_tests.OverwinterDefaultValues (0 ms)
[ RUN      ] checktransaction_tests.OverwinterValidTx
[       OK ] checktransaction_tests.OverwinterValidTx (0 ms)
[ RUN      ] checktransaction_tests.OverwinterExpiryHeight
[       OK ] checktransaction_tests.OverwinterExpiryHeight (0 ms)
[ RUN      ] checktransaction_tests.BlossomExpiryHeight
[       OK ] checktransaction_tests.BlossomExpiryHeight (0 ms)
[ RUN      ] checktransaction_tests.SproutTxVersionTooLow
[       OK ] checktransaction_tests.SproutTxVersionTooLow (1 ms)
[ RUN      ] checktransaction_tests.SaplingSproutInputSumsTooLarge
[       OK ] checktransaction_tests.SaplingSproutInputSumsTooLarge (0 ms)
[ RUN      ] checktransaction_tests.OverwinterVersionNumberLow
[       OK ] checktransaction_tests.OverwinterVersionNumberLow (0 ms)
[ RUN      ] checktransaction_tests.OverwinterVersionNumberHigh
[       OK ] checktransaction_tests.OverwinterVersionNumberHigh (0 ms)
[ RUN      ] checktransaction_tests.OverwinterBadVersionGroupId
[       OK ] checktransaction_tests.OverwinterBadVersionGroupId (1 ms)
[ RUN      ] checktransaction_tests.OverwinterNotActive
[       OK ] checktransaction_tests.OverwinterNotActive (0 ms)
[ RUN      ] checktransaction_tests.OverwinterFlagNotSet
[       OK ] checktransaction_tests.OverwinterFlagNotSet (0 ms)
[ RUN      ] checktransaction_tests.OverwinterInvalidSoftForkVersion
[       OK ] checktransaction_tests.OverwinterInvalidSoftForkVersion (0 ms)
[ RUN      ] checktransaction_tests.OverwinteredContextualCreateTx
[       OK ] checktransaction_tests.OverwinteredContextualCreateTx (0 ms)
[ RUN      ] checktransaction_tests.BadTxReceivedOverNetwork
[       OK ] checktransaction_tests.BadTxReceivedOverNetwork (0 ms)
[----------] 45 tests from checktransaction_tests (64 ms total)

[----------] 9 tests from founders_reward_test
[ RUN      ] founders_reward_test.general
[       OK ] founders_reward_test.general (640 ms)
[ RUN      ] founders_reward_test.regtest_get_last_block_blossom
[       OK ] founders_reward_test.regtest_get_last_block_blossom (0 ms)
[ RUN      ] founders_reward_test.mainnet_get_last_block
gtest/test_foundersreward.cpp:141: Failure
      Expected: 0
To be equal to: params.Halving(lastFRHeight)
      Which is: 9
gtest/test_foundersreward.cpp:142: Failure
      Expected: 1
To be equal to: params.Halving(lastFRHeight + 1)
      Which is: 10
[  FAILED  ] founders_reward_test.mainnet_get_last_block (0 ms)
[ RUN      ] founders_reward_test.mainnet
zero-gtest: chainparams.cpp:604: std::string CChainParams::GetFoundersRewardAddressAtHeight(int) const: Assertion `nHeight >= consensus.nFeeStartBlockHeight && nHeight <= maxHeight' failed.
Aborted (core dumped)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant