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

policyAsset not set in c++ unit tests #408

Closed
nkostoulas opened this issue Sep 10, 2018 · 6 comments
Closed

policyAsset not set in c++ unit tests #408

nkostoulas opened this issue Sep 10, 2018 · 6 comments

Comments

@nkostoulas
Copy link

Policy/fee asset doesn't seem to be set in the src/test unit-tests. I noticed this in txvalidationcache_tests.cpp, where the fee output was discarded when the tx was entered in the mempool as in AcceptToMemoryPoolWorker the following returns 0:

CAmount nFees = tx.GetFee()[policyAsset];

Although it doesn't break anything as zero fees are allowed, it might hide intended functionality if something changed. Do you think it would make sense to add this in the test_bitcoin configuration?

@instagibbs
Copy link
Collaborator

yes, thank you

@instagibbs
Copy link
Collaborator

Do you have a backtrace for the issue?

@nkostoulas
Copy link
Author

FAIL: test/test_elements
========================

Running 210 test cases...
unknown location:0: fatal error: in "tx_validationcache_tests/tx_mempool_block_doublespend": signal: SIGSEGV, si_code: 0 (memory access violation at address: 0x00000000)
test/txvalidationcache_tests.cpp:70: last checkpoint

*** 1 failure is detected in the test module "Bitcoin Test Suite"
Assertion failed: (!pthread_mutex_destroy(&m)), function ~recursive_mutex, file /usr/local/include/boost/thread/pthread/recursive_mutex.hpp, line 104.
FAIL test/test_elements (exit status: 134)

Is there a way to get a detailed trace?

@instagibbs
Copy link
Collaborator

instagibbs commented Sep 12, 2018 via email

@nkostoulas
Copy link
Author

Yea it does! I was just curious why it was happening.

@instagibbs
Copy link
Collaborator

instagibbs commented Sep 12, 2018 via email

@delta1 delta1 closed this as completed Sep 17, 2024
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

3 participants