Skip to content

Commit

Permalink
Q2 correction
Browse files Browse the repository at this point in the history
  • Loading branch information
dani3lgx committed May 23, 2018
1 parent 66f08f2 commit f613752
Showing 1 changed file with 2 additions and 3 deletions.
5 changes: 2 additions & 3 deletions HW2/hw2_part1.py
Original file line number Diff line number Diff line change
Expand Up @@ -109,11 +109,10 @@ def truthful_bidding_agent(tx_size, value, urgency, mempool_data, block_size):
def forward_bidding_agent(tx_size, value, urgency, mempool_data, block_size):

md = mempool_data.copy()
tx_list = greedy_knapsack(block_size, md)
md = md[(md[TXID_colunm_names].isin(tx_list))]

z_dic = {}
for z in range(0,5000,10):
for z in range(0,5010,10):

md_z = md[ (md[satoshi_per_byte_colunm_names] <= z) ]
if len(md_z) ==0:
z_dic[z] = NEVER
Expand Down

0 comments on commit f613752

Please sign in to comment.