git://git.novaco.in
/
novacoin.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
(parent:
62ebd40
)
Get rid of boost::counting_iterator
302/head
author
svost
<ya.nowa@yandex.ru>
Thu, 7 Apr 2016 07:33:19 +0000 (10:33 +0300)
committer
svost
<ya.nowa@yandex.ru>
Thu, 7 Apr 2016 07:33:19 +0000 (10:33 +0300)
src/rpcmining.cpp
patch
|
blob
|
history
diff --git
a/src/rpcmining.cpp
b/src/rpcmining.cpp
index
fa02442
..
62d8837
100644
(file)
--- a/
src/rpcmining.cpp
+++ b/
src/rpcmining.cpp
@@
-13,7
+13,6
@@
#include <boost/format.hpp>
#include <boost/assign/list_of.hpp>
-#include <boost/iterator/counting_iterator.hpp>
using namespace json_spirit;
using namespace std;
@@
-161,7
+160,7
@@
Value scaninput(const Array& params, bool fHelp)
}
else
{
- vInputs = vector<int>(boost::counting_iterator<int>( 0 ), boost::counting_iterator<int>( tx.vout.size() ));
+ for (size_t i = 0; i != tx.vout.size(); ++i) vInputs.push_back(i);
}
CTxDB txdb("r");