Skip to content
This repository has been archived by the owner on Feb 15, 2024. It is now read-only.

error: no viable conversion from 'std::atomic<int>' to 'const UniValue' #76

Open
luke-jr opened this issue Jan 7, 2021 · 4 comments
Open

Comments

@luke-jr
Copy link

luke-jr commented Jan 7, 2021

Regression introduced by PR #61

With GCC 9.3.0, building Bitcoin Core 0.17+:

rpc/blockchain.cpp:2077:35: error: no viable conversion from 'std::atomic<int>' to 'const UniValue'
        result.pushKV("progress", g_scan_progress);
                                  ^~~~~~~~~~~~~~~
@luke-jr
Copy link
Author

luke-jr commented Jan 7, 2021

@promag

@promag
Copy link
Contributor

promag commented Jan 7, 2021

You think it should be reverted or that code should change to g_scan_progress.load()?

@luke-jr
Copy link
Author

luke-jr commented Jan 7, 2021

If the API is going to change, it should wait for 2.0 I guess

@luke-jr
Copy link
Author

luke-jr commented Jan 8, 2021

(It does seem cleaner to simply allow it implicitly, though)

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants